ESP8266
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SDClass Class Reference

Public Member Functions

boolean begin (uint8_t csPin=SD_CHIP_SELECT_PIN, uint32_t speed=SPI_HALF_SPEED)
 
File open (const char *filename, uint8_t mode=O_READ)
 
File open (const String &filename, uint8_t mode=O_READ)
 
boolean exists (char *filepath)
 
boolean exists (const String &filepath)
 
boolean mkdir (char *filepath)
 
boolean mkdir (const String &filepath)
 
boolean remove (char *filepath)
 
boolean remove (const String &filepath)
 
boolean rmdir (char *filepath)
 
boolean rmdir (const String &filepath)
 
uint8_t type ()
 
uint8_t fatType ()
 
size_t blocksPerCluster ()
 
size_t totalClusters ()
 
size_t blockSize ()
 
size_t totalBlocks ()
 
size_t clusterSize ()
 
size_t size ()
 

Private Member Functions

SdFile getParentDir (const char *filepath, int *indx)
 

Private Attributes

Sd2Card card
 
SdVolume volume
 
SdFile root
 
int fileOpenMode
 

Friends

boolean callback_openPath (SdFile &, char *, boolean, void *)
 

Member Function Documentation

boolean SDClass::begin ( uint8_t  csPin = SD_CHIP_SELECT_PIN,
uint32_t  speed = SPI_HALF_SPEED 
)
size_t SDClass::blockSize ( )
size_t SDClass::blocksPerCluster ( )
size_t SDClass::clusterSize ( )
boolean SDClass::exists ( char *  filepath)
boolean SDClass::exists ( const String &  filepath)
uint8_t SDClass::fatType ( )
SdFile SDClass::getParentDir ( const char *  filepath,
int *  indx 
)
private
boolean SDClass::mkdir ( char *  filepath)
boolean SDClass::mkdir ( const String &  filepath)
File SDClass::open ( const char *  filename,
uint8_t  mode = O_READ 
)
File SDClass::open ( const String &  filename,
uint8_t  mode = O_READ 
)
boolean SDClass::remove ( char *  filepath)
boolean SDClass::remove ( const String &  filepath)
boolean SDClass::rmdir ( char *  filepath)
boolean SDClass::rmdir ( const String &  filepath)
size_t SDClass::size ( )
size_t SDClass::totalBlocks ( )
size_t SDClass::totalClusters ( )
uint8_t SDClass::type ( )

Friends And Related Function Documentation

boolean callback_openPath ( SdFile ,
char *  ,
boolean  ,
void *   
)
friend

Member Data Documentation

Sd2Card SDClass::card
private
int SDClass::fileOpenMode
private
SdFile SDClass::root
private
SdVolume SDClass::volume
private