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

C++ std based emulatoion ofr SdFat. More...

#include <SD.h>

Public Member Functions

bool begin (int cs=SS, int speed=0)
bool begin (int cs=SS, int speed=0)
bool begin (SdSpiConfig &cfg)
bool begin (SdSpiConfig &cfg)
void end ()
void end ()
void errorHalt (const char *msg)
void errorHalt (const char *msg)
bool exists (char *name)
bool exists (const char *name)
void initErrorHalt ()
void initErrorHalt ()
bool mediaPresent ()
 Return whether the host filesystem backing the emulator is usable.
bool mkdir (const char *name)
File open (const char *name, int flags=O_READ)
bool remove (const char *name)
bool rmdir (const char *path)
uint64_t totalBytes ()
uint64_t totalSize ()
 Total capacity in bytes of the host filesystem backing SD.
uint64_t usedBytes ()
uint64_t usedSize ()
 Used bytes of the host filesystem backing SD.

Detailed Description

C++ std based emulatoion ofr SdFat.

Member Function Documentation

◆ mediaPresent()

bool SdFat::mediaPresent ( )
inline

Return whether the host filesystem backing the emulator is usable.

The emulator has no removable media, so a writable current working directory is the closest equivalent to an inserted SD card.


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