FATINFO
The type FATINFO describes the FAT volume information control block. The structure is defined in the file File_Config.h as follows:
typedef struct {
U32 BootRecSec; /* Boot Record Sector Offset */
U8 FatType; /* File System Fat type. */
U8 NumOfFat; /* Number of Fat tables */
U8 SecPerClus; /* Number of Sectors per Cluster */
U16 FatSize; /* Number of Sectors per FAT table */
U16 RsvdSecCnt; /* Number of Reserved Sectors */
U32 DskSize; /* Disk Size Sector Count */
U32 DataSecCnt; /* Number of Data Sectors */
U16 RootEntCnt; /* Maximum Root Directory entries */
U16 BytesPerSec; /* Sector Size in bytes */
U32 DataClusCnt; /* Data Cluster Count */
U16 RootDirAddr; /* Root Dir First Sector */
U16 RootSecCnt; /* Number of Sectors for Root dir */
U32 ClusSize; /* Cluster Size in bytes */
U16 EntsPerClus; /* Number of entries per cluster */
/* Added fields for FAT32 */
U16 FAT32_ExtFlags; /* FAT extended flags */
U32 FAT32_RootClus; /* Root directory first cluster */
U16 FAT32_FSInfo; /* FSInfo structure sector number */
U16 FAT32_BkBootSec; /* Boot Record copy sector number */
} FATINFO
Example:
#include <file_config.h>
...
FATINFO fatInfo;
...
...