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
00001 #include "mbed.h" 00002 00003 00004 class SDCard 00005 { 00006 public: 00007 00008 SDCard(SPI *t_spi, PinName t_cs); 00009 ~SDCard(); 00010 00011 int init(void); 00012 00013 bool read(uint8_t *vect, int post); //Lextura de un bloque de 512 00014 bool write(uint8_t *vect, int post); //Escritura de un bloque de 512 00015 00016 private: 00017 00018 SPI *spi; 00019 DigitalOut cs; 00020 int cdv; 00021 00022 int init_card_v1(); 00023 int init_card_v2(); 00024 00025 int cmd(int cmd, int arg); 00026 int cmd8(); 00027 int cmd58(); 00028 00029 }; 00030
Generated on Tue Jul 26 2022 21:34:42 by
1.7.2