Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial SX1276GenericLib X_NUCLEO_IKS01A2
SDCard_Y.hh
- Committer:
- LucasKB
- Date:
- 2019-06-17
- Revision:
- 2:91a80cc7d87d
File content as of revision 2:91a80cc7d87d:
#include "mbed.h"
class SDCard
{
public:
SDCard(SPI *t_spi, PinName t_cs);
~SDCard();
int init(void);
bool read(uint8_t *vect, int post); //Lextura de un bloque de 512
bool write(uint8_t *vect, int post); //Escritura de un bloque de 512
private:
SPI *spi;
DigitalOut cs;
int cdv;
int init_card_v1();
int init_card_v2();
int cmd(int cmd, int arg);
int cmd8();
int cmd58();
};