USBMSD: Use SDFileSystem class and USB non-blocking
Fork of USBMSD_SD by
USBMSD_SD Class Reference
Use the SDcard as mass storage device using the USBMSD class. More...
#include <USBMSD_SD.h>
Public Member Functions | |
USBMSD_SD (PinName mosi, PinName miso, PinName sclk, PinName cs, const char *name) | |
Create the File System for accessing an SD Card using SPI. |
Detailed Description
Use the SDcard as mass storage device using the USBMSD class.
#include "mbed.h" #include "USBMSD_SD.h" USBMSD_SD sd(p5, p6, p7, p8); int main() { while(1); }
Definition at line 44 of file USBMSD_SD.h.
Constructor & Destructor Documentation
USBMSD_SD | ( | PinName | mosi, |
PinName | miso, | ||
PinName | sclk, | ||
PinName | cs, | ||
const char * | name | ||
) |
Create the File System for accessing an SD Card using SPI.
- Parameters:
-
mosi SPI mosi pin connected to SD Card miso SPI miso pin conencted to SD Card sclk SPI sclk pin connected to SD Card cs DigitalOut pin used as SD Card chip select name The name used to access the virtual filesystem
Definition at line 26 of file USBMSD_SD.cpp.
Generated on Fri Jul 15 2022 10:03:16 by 1.7.2