RX
Dependencies: mbed BufferedSerial SX1276GenericLib X_NUCLEO_IKS01A2
SDCard_Y.hh
- Committer:
- TMRL123
- Date:
- 2019-06-05
- Revision:
- 0:674f1e460248
File content as of revision 0:674f1e460248:
#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(); };