SdFat
|
SD file system class for exFAT volumes. More...
#include <SdFat.h>
Public Member Functions | |
bool | begin (BlockDevice *dev, bool setCwv=true, uint8_t part=1) |
bool | begin (uint8_t csPin=SS) |
bool | begin (SdSpiConfig spiConfig) |
bool | begin (SdioConfig sdioConfig) |
uint32_t | bytesPerCluster () |
uint8_t | bytesPerClusterShift () |
uint16_t | bytesPerSector () |
uint8_t | bytesPerSectorShift () |
uint8_t * | cacheClear () |
SdCard * | card () |
bool | cardBegin (SdSpiConfig spiConfig) |
bool | cardBegin (SdioConfig sdioConfig) |
bool | chdir () |
bool | chdir (const char *path) |
void | chvol () |
uint32_t | clusterCount () |
uint32_t | clusterHeapStartSector () |
void | errorHalt (print_t *pr) |
void | errorHalt (print_t *pr, const char *msg) |
void | errorHalt (print_t *pr, const __FlashStringHelper *msg) |
void | errorPrint (print_t *pr) |
void | errorPrint (print_t *pr, char const *msg) |
void | errorPrint (Print *pr, const __FlashStringHelper *msg) |
bool | exists (const ExChar_t *path) |
uint32_t | fatLength () |
uint32_t | fatStartSector () |
uint8_t | fatType () const |
bool | format (print_t *pr=NULL) |
uint32_t | freeClusterCount () |
bool | init (BlockDevice *dev, uint8_t part) |
void | initErrorHalt (print_t *pr) |
void | initErrorHalt (print_t *pr, const char *msg) |
void | initErrorHalt (Print *pr, const __FlashStringHelper *msg) |
void | initErrorPrint (Print *pr) |
bool | ls (print_t *pr, uint8_t flags=0) |
bool | ls (print_t *pr, const ExChar_t *path, uint8_t flags) |
bool | mkdir (const ExChar_t *path, bool pFlag=true) |
ExFile | open (const ExChar_t *path, oflag_t oflag=0X00) |
void | printFatType (print_t *pr) |
void | printSdError (print_t *pr) |
bool | remove (const ExChar_t *path) |
bool | rename (const ExChar_t *oldPath, const ExChar_t *newPath) |
bool | rmdir (const ExChar_t *path) |
uint32_t | rootDirectoryCluster () |
uint32_t | rootLength () |
uint8_t | sdErrorCode () |
uint8_t | sdErrorData () |
uint32_t | sectorsPerCluster () |
uint8_t | sectorsPerClusterShift () |
bool | truncate (const ExChar_t *path, uint64_t length) |
ExFatVolume * | vol () |
bool | volumeBegin () |
Static Public Member Functions | |
static ExFatVolume * | cwv () |
SD file system class for exFAT volumes.
|
inlineinherited |
Initialize an FatVolume object.
[in] | dev | Device block driver. |
[in] | setCwv | Set current working volume if true. |
[in] | part | partition to initialize. |
|
inlineinherited |
Initialize SD card and file system.
[in] | csPin | SD card chip select pin. |
|
inlineinherited |
Initialize SD card and file system for SPI mode.
[in] | spiConfig | SPI configuration. |
|
inlineinherited |
Initialize SD card and file system for SDIO mode.
[in] | sdioConfig | SDIO configuration. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Clear the cache and returns a pointer to the cache. Not for normal apps.
|
inlineinherited |
|
inlineinherited |
Initialize SD card in SPI mode.
[in] | spiConfig | SPI configuration. |
|
inlineinherited |
Initialize SD card in SDIO mode.
[in] | sdioConfig | SDIO configuration. |
|
inlineinherited |
Set volume working directory to root.
|
inherited |
Set volume working directory.
[in] | path | Path for volume working directory. |
|
inlineinherited |
Change global working volume to this volume.
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Print msg and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Print SD errorCode and errorData.
[in] | pr | Print destination. |
|
inlineinherited |
Print msg, any SD error code.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Print msg, any SD error code.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Test for the existence of a file.
[in] | path | Path of the file to be tested for. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Format a SD card exFAT.
[in] | pr | Optional Print information. |
|
inherited |
|
inherited |
Initialize a exFAT partition.
[in] | dev | The blockDevice for the partition. |
[in] | part | The partition to be used. Legal values for part are 1-4 to use the corresponding partition on a device formatted with a MBR, Master Boot Record, or zero if the device is formatted as a super floppy with the FAT boot sector in sector zero. |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Print error info and halt.
[in] | pr | Print destination. |
[in] | msg | Message to print. |
|
inlineinherited |
Print error details after begin() fails.
[in] | pr | Print destination. |
|
inlineinherited |
List the directory contents of the root directory.
[in] | pr | Print stream for 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 the 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 |
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 |
open a file
[in] | path | location of file to be opened. |
[in] | oflag | open flags. |
|
inlineinherited |
Print volume FAT/exFAT type.
[in] | pr | Print destination. |
|
inlineinherited |
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 |
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 working 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 |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Truncate a file to a specified length. The current file position will be at the new EOF.
[in] | path | A path with a valid 8.3 DOS name for the file. |
[in] | length | The desired length for the file. |
|
inlineinherited |
|
inlineinherited |
Initialize file system after call to cardBegin.