Files | |
file | fatfs.h |
FatFs integration for vfs. | |
Data Structures | |
struct | fatfs_desc |
FatFs instance descriptor. More... | |
struct | fatfs_file_desc |
FatFs file instance descriptor. More... | |
Macros | |
#define | FATFS_YEAR_OFFSET (1980) |
The year in FatFs timestamps is relative to this offset. | |
#define | EPOCH_YEAR_OFFSET (1970) |
The epoch offset is used to convert between FatFs and time_t timestamps. | |
#define | FATFS_MAX_VOL_STR_LEN (6) |
size needed for volume strings like "n:/" where n is the volume id | |
#define | FATFS_MOUNT_OPT (1) |
0:mount on first file access, 1 mount in f_mount() call | |
#define | CONFIG_FATFS_FORMAT_TYPE FM_ANY |
FAT filesystem type that a file system should be formatted in by vfs_format() | |
#define | CONFIG_FATFS_FORMAT_ALLOC_STATIC 0 |
Statically allocate work buffer for format operation. | |
#define | FATFS_MAX_ABS_PATH_SIZE (FATFS_MAX_VOL_STR_LEN + VFS_NAME_MAX + 1) |
Size of path buffer for absolute paths. | |
Typedefs | |
typedef struct fatfs_desc | fatfs_desc_t |
FatFs instance descriptor. | |
typedef struct fatfs_file_desc | fatfs_file_desc_t |
FatFs file instance descriptor. | |
Variables | |
const vfs_file_system_t | fatfs_file_system |
The FatFs vfs driver, a pointer to a fatfs_desc_t must be provided as vfs_mountp::private_data. | |
#define CONFIG_FATFS_FORMAT_ALLOC_STATIC 0 |
Statically allocate work buffer for format operation.
This will statically allocate 512 bytes as the work buffer for the format operation.
If this is set to 0, dynamic allocation (malloc) will be used instead and format will fail if not enough memory is available.
#define CONFIG_FATFS_FORMAT_TYPE FM_ANY |
FAT filesystem type that a file system should be formatted in by vfs_format()
#define EPOCH_YEAR_OFFSET (1970) |
#define FATFS_MAX_ABS_PATH_SIZE (FATFS_MAX_VOL_STR_LEN + VFS_NAME_MAX + 1) |
#define FATFS_MAX_VOL_STR_LEN (6) |
#define FATFS_MOUNT_OPT (1) |