arduino-emulator
Loading...
Searching...
No Matches
SDMMCFS Class Reference

ESP32 compatible SD_MMC which is a directory of the computer: SD_MMC.open("/test.txt") opens SD_MMC_ROOT/test.txt. The pins are ignored. More...

#include <SD_MMC.h>

Inheritance diagram for SDMMCFS:
DirectoryFS

Public Member Functions

bool begin (const char *mountpoint="/sdcard", bool mode1bit=false, bool format_if_mount_failed=false, int sdmmc_frequency=20000, uint8_t maxOpenFiles=5)
uint64_t cardSize ()
bool setPins (int clk, int cmd, int d0, int d1=-1, int d2=-1, int d3=-1)
Public Member Functions inherited from DirectoryFS
 DirectoryFS (const char *envName, const char *defaultRoot)
bool beginRoot ()
 Determines the root directory: the environment variable or the default.
void end ()
bool exists (const char *path)
bool format ()
const char * getRoot ()
bool mkdir (const char *path)
File open (const char *path, const char *mode="r", bool create=false)
 Opens a file: mode "r", "w", "a", "r+", "w+" or "a+".
bool remove (const char *path)
bool rename (const char *from, const char *to)
bool rmdir (const char *path)
void setRoot (const char *dir)
 Changes the root directory.
size_t totalBytes ()
size_t usedBytes ()

Additional Inherited Members

Protected Member Functions inherited from DirectoryFS
std::string fullPath (const char *path)
Static Protected Member Functions inherited from DirectoryFS
static int toFlags (const char *mode)
Protected Attributes inherited from DirectoryFS
const char * default_root
const char * env_name
std::string root

Detailed Description

ESP32 compatible SD_MMC which is a directory of the computer: SD_MMC.open("/test.txt") opens SD_MMC_ROOT/test.txt. The pins are ignored.


The documentation for this class was generated from the following file: