SdFat
|
SD file system class for FAT16, FAT32, and exFAT volumes. More...
#include <SdFat.h>
Public Member Functions | |
bool | begin (BlockDevice *blockDev) |
bool | begin (SdCsPin_t csPin, uint32_t maxSck) |
bool | begin (SdCsPin_t csPin=SS) |
bool | begin (SdioConfig sdioConfig) |
bool | begin (SdSpiConfig spiConfig) |
uint32_t | bytesPerCluster () |
SdCard * | card () |
bool | cardBegin (SdioConfig sdioConfig) |
bool | cardBegin (SdSpiConfig spiConfig) |
bool | chdir () |
bool | chdir (const char *path) |
bool | chdir (const String &path) |
void | chvol () |
uint32_t | clusterCount () |
uint32_t | dataStartSector () const |
void | end () |
void | errorHalt () |
void | errorHalt (const __FlashStringHelper *msg) |
void | errorHalt (const char *msg) |
void | errorHalt (print_t *pr) |
void | errorHalt (print_t *pr, const __FlashStringHelper *msg) |
void | errorHalt (print_t *pr, const char *msg) |
void | errorPrint (const __FlashStringHelper *msg) |
void | errorPrint (const char *msg) |
void | errorPrint (Print *pr, const __FlashStringHelper *msg) |
void | errorPrint (print_t *pr) |
void | errorPrint (print_t *pr, char const *msg) |
bool | exists (const char *path) |
bool | exists (const String &path) |
uint32_t | fatStartSector () const |
uint8_t | fatType () const |
uint32_t | freeClusterCount () |
void | initErrorHalt () |
void | initErrorHalt (const __FlashStringHelper *msg) |
void | initErrorHalt (const char *msg) |
void | initErrorHalt (Print *pr, const __FlashStringHelper *msg) |
void | initErrorHalt (print_t *pr) |
void | initErrorHalt (print_t *pr, const char *msg) |
void | initErrorPrint () |
void | initErrorPrint (Print *pr) |
bool | ls () |
bool | ls (const char *path, uint8_t flags=0) |
bool | ls (print_t *pr) |
bool | ls (print_t *pr, const char *path, uint8_t flags) |
bool | ls (print_t *pr, uint8_t flags) |
bool | ls (uint8_t flags) |
bool | mkdir (const char *path, bool pFlag=true) |
bool | mkdir (const String &path, bool pFlag=true) |
FsFile | open (const char *path, oflag_t oflag=0X00) |
FsFile | open (const String &path, oflag_t oflag=0X00) |
void | printFatType (print_t *pr) |
void | printSdError (print_t *pr) |
bool | remove (const char *path) |
bool | remove (const String &path) |
bool | rename (const char *oldPath, const char *newPath) |
bool | rename (const String &oldPath, const String &newPath) |
bool | rmdir (const char *path) |
bool | rmdir (const String &path) |
uint8_t | sdErrorCode () |
uint8_t | sdErrorData () |
uint32_t | sectorsPerCluster () const |
FsVolume * | vol () |
bool | volumeBegin () |
Static Public Member Functions | |
static FsVolume * | cwv () |
SD file system class for FAT16, FAT32, and exFAT volumes.
|
inherited |
Initialize an FatVolume object.
[in] | blockDev | Device block driver. |
Initialize SD card and file system.
[in] | csPin | SD card chip select pin. |
[in] | maxSck | Maximum SCK frequency. |
Initialize SD card and file system.
[in] | csPin | SD card chip select pin. |
|
inlineinherited |
Initialize SD card and file system for SDIO mode.
[in] | sdioConfig | SDIO configuration. |
|
inlineinherited |
Initialize SD card and file system for SPI mode.
[in] | spiConfig | SPI configuration. |
|
inlineinherited |
|
inlineinherited |
Initialize SD card in SDIO mode.
[in] | sdioConfig | SDIO configuration. |
|
inlineinherited |
Initialize SD card in SPI mode.
[in] | spiConfig | SPI configuration. |
|
inlineinherited |
Set volume working directory to root.
|
inlineinherited |
Set volume working directory.
[in] | path | Path for volume working directory. |
|
inlineinherited |
Set volume working directory.
[in] | path | Path for volume working directory. |
|
inlineinherited |
Change global working volume to this volume.
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
free dynamic memory and end access to volume
Print msg to Serial and halt.
[in] | msg | Message to print. |
Print error info and halt.
[in] | msg | Message to print. |
Print error info and halt.
[in] | pr | Print destination. |
|
inlineinherited |
Print msg and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
Print msg, any SD error code.
[in] | msg | Message to print. |
Print msg, any SD error code.
[in] | msg | Message to print. |
Print msg, any SD error code.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
Print SD errorCode and errorData.
[in] | pr | Print destination. |
Print msg, any SD error code.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Test for the existence of a file in a directory
[in] | path | Path of the file to be tested for. |
|
inlineinherited |
Test for the existence of a file in a directory
[in] | path | Path of the file to be tested for. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Print error info and halt.
[in] | msg | Message to print. |
Print error info and halt.
[in] | msg | Message to print. |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
Print error info and halt.
[in] | pr | Print destination. |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
Print error details after begin() fails.
Print error details after begin() fails.
[in] | pr | Print destination. |
|
inlineinherited |
List directory contents.
|
inlineinherited |
List the directory contents of a directory to Serial.
[in] | path | directory to list. |
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inlineinherited |
List directory contents.
[in] | pr | Print object. |
|
inherited |
List the directory contents of a directory.
[in] | pr | Print stream for list. |
[in] | path | directory to list. |
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inlineinherited |
List directory contents.
[in] | pr | Print object. |
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inlineinherited |
List directory contents.
[in] | flags | The inclusive OR of |
LS_DATE - Print file modification date
LS_SIZE - Print file size.
LS_R - Recursive list of subdirectories.
|
inlineinherited |
Make a subdirectory in the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
[in] | pFlag | Create missing parent directories if true. |
|
inlineinherited |
Make a subdirectory in the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
[in] | pFlag | Create missing parent directories if true. |
|
inherited |
open a file
[in] | path | location of file to be opened. |
[in] | oflag | open flags. |
|
inherited |
open a file
[in] | path | location of file to be opened. |
[in] | oflag | open flags. |
Print volume FAT/exFAT type.
[in] | pr | Print destination. |
Print error info and return.
[in] | pr | Print destination. |
|
inlineinherited |
Remove a file from the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the file. |
|
inlineinherited |
Remove a file from the volume root directory.
[in] | path | A path with a valid 8.3 DOS name for the file. |
|
inlineinherited |
Rename a file or subdirectory.
[in] | oldPath | Path name to the file or subdirectory to be renamed. |
[in] | newPath | New path name of the file or subdirectory. |
The newPath object must not exist before the rename call.
The file to be renamed must not be open. The directory entry may be moved and file system corruption could occur if the file is accessed by a file object that was opened before the rename() call.
|
inlineinherited |
Rename a file or subdirectory.
[in] | oldPath | Path name to the file or subdirectory to be renamed. |
[in] | newPath | New path name of the file or subdirectory. |
The newPath object must not exist before the rename call.
The file to be renamed must not be open. The directory entry may be moved and file system corruption could occur if the file is accessed by a file object that was opened before the rename() call.
|
inlineinherited |
Remove a subdirectory from the volume's root directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
The subdirectory file will be removed only if it is empty.
|
inlineinherited |
Remove a subdirectory from the volume's root directory.
[in] | path | A path with a valid 8.3 DOS name for the subdirectory. |
The subdirectory file will be removed only if it is empty.
|
inlineinherited |
Initialize file system after call to cardBegin.