ESP32 Virtual File System for SDMMC. The default mount point is "/sdcard" DRAFT implementation: not tested see https://github.com/espressif/esp-idf/blob/master/examples/storage/sd_card/sdmmc/README.md.
More...
#include <VFS_SDMMC.h>
|
| | VFS_SDMMC (const char *mountPoint="/sdmmc") |
| |
| | VFS_SDMMC (int pinClk, int pinCmd, int pinD0, int pinD1, int pinD2=-1, int pinD3=-1, const char *mountPoint="/sdmmc") |
| |
| bool | begin () |
| | mount the file systems
|
| |
| void | end () |
| | unmount the file system
|
| |
| bool | exists (const char *path) |
| |
| bool | exists (const std::string &path) |
| |
| bool | mkdir (const char *path) |
| |
| bool | mkdir (const std::string &path) |
| |
| const char * | mountPoint () |
| | provides the actual mount point
|
| |
| VFSFile | open (const char *file, FileMode mode=VFS_FILE_READ) |
| |
| VFSFile | open (const std::string &path, FileMode mode=VFS_FILE_READ) |
| |
| bool | remove (const char *path) |
| |
| bool | remove (const std::string &path) |
| |
| bool | rename (const char *pathFrom, const char *pathTo) |
| |
| bool | rename (const std::string &pathFrom, const std::string &pathTo) |
| |
| bool | rmdir (const char *path) |
| |
| bool | rmdir (const std::string &path) |
| |
| void | setBusWidth (BusWidth bits) |
| |
| void | setClk (int pin) |
| |
| void | setCmd (int pin) |
| |
| void | setD0 (int pin) |
| |
| void | setD1 (int pin) |
| |
| void | setD2 (int pin) |
| |
| void | setD3 (int pin) |
| |
| void | setMountPoint (const char *mp) |
| | provide the mount point (root directory for the file system)
|
| |
| void | setPins (int pinClk, int pinCmd, int pinD0, int pinD1, int pinD2=-1, int pinD3=-1) |
| |
| void | setSpeed (Speed speed) |
| |
|
| const char * | expand (const char *file) |
| | expands the file name with the mount point
|
| |
ESP32 Virtual File System for SDMMC. The default mount point is "/sdcard" DRAFT implementation: not tested see https://github.com/espressif/esp-idf/blob/master/examples/storage/sd_card/sdmmc/README.md.
- Note
- Supported only by ESP32 (Arduino and IDF)
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ BusWidth
◆ Speed
| Enumerator |
|---|
| HS | |
| UHS_SDR | |
| UHS_DDR | |
◆ VFS_SDMMC() [1/2]
| VFS_SDMMC |
( |
const char * |
mountPoint = "/sdmmc" | ) |
|
|
inline |
◆ VFS_SDMMC() [2/2]
| VFS_SDMMC |
( |
int |
pinClk, |
|
|
int |
pinCmd, |
|
|
int |
pinD0, |
|
|
int |
pinD1, |
|
|
int |
pinD2 = -1, |
|
|
int |
pinD3 = -1, |
|
|
const char * |
mountPoint = "/sdmmc" |
|
) |
| |
|
inline |
◆ begin()
mount the file systems
< SD High speed (limited by clock divider)
< MMC 100MHz speed
< MMC 50MHz speed
Reimplemented from VFS.
◆ end()
unmount the file system
Reimplemented from VFS.
◆ exists() [1/2]
| bool exists |
( |
const char * |
path | ) |
|
|
inlineinherited |
◆ exists() [2/2]
| bool exists |
( |
const std::string & |
path | ) |
|
|
inlineinherited |
◆ expand()
| const char * expand |
( |
const char * |
file | ) |
|
|
inlineprotectedinherited |
expands the file name with the mount point
◆ mkdir() [1/2]
| bool mkdir |
( |
const char * |
path | ) |
|
|
inlineinherited |
◆ mkdir() [2/2]
| bool mkdir |
( |
const std::string & |
path | ) |
|
|
inlineinherited |
◆ mountPoint()
| const char * mountPoint |
( |
| ) |
|
|
inlineinherited |
provides the actual mount point
◆ open() [1/2]
◆ open() [2/2]
◆ remove() [1/2]
| bool remove |
( |
const char * |
path | ) |
|
|
inlineinherited |
◆ remove() [2/2]
| bool remove |
( |
const std::string & |
path | ) |
|
|
inlineinherited |
◆ rename() [1/2]
| bool rename |
( |
const char * |
pathFrom, |
|
|
const char * |
pathTo |
|
) |
| |
|
inlineinherited |
◆ rename() [2/2]
| bool rename |
( |
const std::string & |
pathFrom, |
|
|
const std::string & |
pathTo |
|
) |
| |
|
inlineinherited |
◆ rmdir() [1/2]
| bool rmdir |
( |
const char * |
path | ) |
|
|
inlineinherited |
◆ rmdir() [2/2]
| bool rmdir |
( |
const std::string & |
path | ) |
|
|
inlineinherited |
◆ setBusWidth()
◆ setClk()
◆ setCmd()
◆ setD0()
◆ setD1()
◆ setD2()
◆ setD3()
◆ setMountPoint()
| void setMountPoint |
( |
const char * |
mp | ) |
|
|
inlinevirtual |
provide the mount point (root directory for the file system)
Reimplemented from VFS.
◆ setPins()
| void setPins |
( |
int |
pinClk, |
|
|
int |
pinCmd, |
|
|
int |
pinD0, |
|
|
int |
pinD1, |
|
|
int |
pinD2 = -1, |
|
|
int |
pinD3 = -1 |
|
) |
| |
|
inline |
◆ setSpeed()
| void setSpeed |
( |
Speed |
speed | ) |
|
|
inline |
◆ allocation_unit_size
| size_t allocation_unit_size = 16 * 1024 |
|
protected |
◆ bus_width
◆ card
| sdmmc_card_t* card = nullptr |
|
protected |
◆ host
◆ max_files
◆ mount_point
| const char* mount_point = "/" |
|
protectedinherited |
◆ pin_clk
| gpio_num_t pin_clk = (gpio_num_t) 14 |
|
protected |
◆ pin_cmd
| gpio_num_t pin_cmd = (gpio_num_t) 15 |
|
protected |
◆ pin_d0
| gpio_num_t pin_d0 = (gpio_num_t) 2 |
|
protected |
◆ pin_d1
| gpio_num_t pin_d1 = (gpio_num_t) 4 |
|
protected |
◆ pin_d2
| gpio_num_t pin_d2 = (gpio_num_t) 12 |
|
protected |
◆ pin_d3
| gpio_num_t pin_d3 = (gpio_num_t) 13 |
|
protected |
◆ pwr_ctrl_handle
| sd_pwr_ctrl_handle_t pwr_ctrl_handle |
|
protected |
◆ speed
◆ tmp
The documentation for this class was generated from the following file: