Data Fields | |
uint8_t | csize |
Sectors per cluster (1,2,4...128) | |
uint32_t | database |
Data start sector. | |
uint32_t | dirbase |
Root directory start sector (FAT32: Cluster#) | |
uint8_t | drv |
Physical drive number. | |
uint32_t | fatbase |
FAT start sector. | |
uint32_t | free_clust |
Number of free clusters. | |
uint8_t | fs_type |
FAT sub-type (0:Not mounted) | |
uint8_t | fsi_flag |
fsinfo dirty flag (1:must be written back) | |
uint32_t | fsi_sector |
fsinfo sector (FAT32) | |
uint32_t | fsize |
Sectors per FAT. | |
uint16_t | id |
File system mount ID. | |
uint32_t | last_clust |
Last allocated cluster. | |
uint32_t | n_fatent |
Number of FAT entries (= number of clusters + 2) | |
uint8_t | n_fats |
Number of FAT copies (1,2) | |
uint16_t | n_rootdir |
Number of root directory entries (FAT12/16) | |
uint8_t | wflag |
win[] dirty flag (1:must be written back) | |
uint8_t | win [_MAX_SS] |
Disk access window for directory, FAT and data. | |
uint32_t | winsect |
Current sector appearing in the win[]. |
File system object structure (FATFS)
Disk access window for directory, FAT and data.
This window respectively buffer is bound to the file system structure (FATFS) on (fiexd) tiny configuration.
Note (internal, future): On weAutSys' SMC this should be omitted as the (driver's) sector buffer is of same size and purpose. It also handles "dirty state" correctly / automatically.