?? fat32_buffer.h
字號:
#ifndef FAT32BUFFER
#define FAT32BUFFER
//-----------------------------------------------------------------------------
// Max buffer size variable
//-----------------------------------------------------------------------------
#define bufferlength 50
typedef struct
{
int first; // The head of the circular buffer
int last; // The tail of buffer
UI32 buffer[bufferlength+1]; // The data storing element
int count; // The data counter
int clustersused; // Counts how many times a cluster has been
// removed from the buffer
UI32 lastcluster; // Last cluster read
UI8 EOFdetected;
} FATBuffer_t;
extern FATBuffer_t FATBuffer;
//-----------------------------------------------------------------------------
// Prototypes
//-----------------------------------------------------------------------------
void DEBUG_PrintFATBuffer(void);
void FATBuffer_FillFATBuffer(UI32 startcluster);
void FATBuffer_BufferInit(void);
int FATBuffer_AddtoTail(UI32 data);
UI32 FATBuffer_RemovefromHead(void);
void FATBuffer_ReFillFATBuffer(void);
int FATBuffer_SectorReaderBUFFERED(UI32 Startcluster, UI32 offset, int firstuse);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -