📄 fat32.h
字号:
#define uchar unsigned char
#define uint unsigned int
typedef struct _SYS_INFO_BLOCK{
unsigned long StartSector;
unsigned long TotalSector;
uint BPB_BytesPerSec; //每扇区字节数
uchar BPB_SecPerClus; //每簇扇区数
uchar BPB_NumFATs; //FAT数(2个)
uint BPB_RootEntCnt; //目录区占32个扇区
uint BPB_TotSec16;
// INT8 BPB_Media;
uint BPB_FATSz16;
uint BPB_SecPerTrk;
uint BPB_NumHeads;
unsigned long BPB_HiddSec;
unsigned long BPB_TotSec32;
unsigned long FatStartSector;
unsigned long RootStartSector;
unsigned long FirstDataSector;
/////////////////////FAT32///////////////////////////////
unsigned long BPB_FATSz32;
unsigned long RootStartCluster;
unsigned long TotCluster;
unsigned char FAT; //FAT16=0,FAT32=1;
} SYS_INFO_BLOCK;
//*************************************************************
//*************************************************************
typedef struct _FILE_INFO{
unsigned char bFileOpen;
unsigned long StartCluster; //unsigned int StartCluster;
unsigned long LengthInByte;
unsigned long ClusterPointer; //unsigned int ClusterPointer;
unsigned long SectorPointer;
unsigned int OffsetofSector;
unsigned char SectorofCluster;
unsigned long pointer;
unsigned long FatSectorPointer; //unsigned int FatSectorPointer;
} FILE_INFO;
//*************************************************************
//*************************************************************
typedef struct _DIR_INFO{
unsigned char name[8];
unsigned char extension[3];
unsigned char attribute;
unsigned char Reserved[10];
unsigned int lastUpdateDate;
unsigned int lastUpdateTime;
unsigned int startCluster;
unsigned long length;
} DIR_INFO;
//*************************************************************
//*************************************************************
typedef struct ShowFileName_D{
unsigned char LongName[256]; //long file name,end by 00 00
unsigned char item[32]; //short file name & dir
} ShowFileName_Def;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -