123
Fork of SDFileSystem by
SDFileSystem Class Reference
Access the filesystem on an SD Card using SPI. More...
#include <SDFileSystem.h>
Public Member Functions | |
SDFileSystem (PinName mosi, PinName miso, PinName sclk, PinName cs, const char *name) | |
Create the File System for accessing an SD Card using SPI. |
Detailed Description
Access the filesystem on an SD Card using SPI.
#include "mbed.h" #include "SDFileSystem.h" SDFileSystem sd(p5, p6, p7, p12, "sd"); // MOSI, MISO, SCLK, SSEL int main() { FILE *fp = fopen("/sd/mbed.txt", "w"); fprintf(fp, "Hello World!\n"); fclose(fp); }
Definition at line 44 of file SDFileSystem.h.
Constructor & Destructor Documentation
SDFileSystem | ( | 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 123 of file SDFileSystem.cpp.
Generated on Wed Aug 17 2022 11:16:12 by 1.7.2