📄 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 + -