Classes | |
class | FileSystem |
struct | FormatOptions |
Formatting options. More... | |
struct | FatParam |
Functions | |
int | translateFatfsResult (uint8_t result, bool diskio_write) |
String | fatfsErrorToStr (uint8_t err) |
ErrorCode | calculateFatParam (Partition partition, const FormatOptions &opt, FatParam ¶m) |
Deduce FAT volume parameters for given space. More... | |
ErrorCode | formatVolume (Partition partition, const FatParam ¶m) |
Format partition using pre-calculated FAT parameters. More... | |
ErrorCode | formatVolume (Partition partition, const FormatOptions &opt={}) |
Format partition with a blank FAT volume. More... | |
Function Documentation
◆ calculateFatParam()
ErrorCode IFS::FAT::calculateFatParam | ( | Partition | partition, |
const FormatOptions & | opt, | ||
FatParam & | param | ||
) |
Deduce FAT volume parameters for given space.
- Parameters
-
partition The partition to format opt Formatting options param On success, contains calculated parameters for FAT volume
- Return values
-
ErrorCode When partitioning using MBR format, this method can be used to determine the Sys indicator
value setting.
◆ fatfsErrorToStr()
String IFS::FAT::fatfsErrorToStr | ( | uint8_t | err | ) |
◆ formatVolume() [1/2]
Format partition using pre-calculated FAT parameters.
- Parameters
-
partition The partition to format param Detailed FAT parameters (returned from calculateFatParam
)
- Return values
-
ErrorCode This function allows fine control over exactly how a FAT partition is constructed. Generally the calculateFatParam
function should be used to populate theparam
structure, then any modifications can be made as required before actually formatting the volume.
◆ formatVolume() [2/2]
|
inline |
◆ translateFatfsResult()
int IFS::FAT::translateFatfsResult | ( | uint8_t | result, |
bool | diskio_write | ||
) |