📄 fat1618_2.h
字号:
#ifndef _FAT16182_H_INCLUDED
#define _FAT16182_H_INCLUDED
struct file2TYPE
{
unsigned char name[12]; /*name of file*/
unsigned char attributes;
unsigned short entry; /*file-entry index in directory table*/
unsigned short sec; /*sector index in file*/
unsigned long len; /*file size*/
unsigned long cluster; /*current cluster*/
};
/*global sector buffer, data for read/write actions is stored here.
BEWARE, this buffer is also used and thus trashed by all other functions*/
extern unsigned char secbuf[512]; /*sector buffer*/
/*constants*/
#define FILESEEK_START 0 /*start search from beginning of directory*/
#define FILESEEK_NEXT 1 /*find next file in directory*/
#define FILESEEK_PREV 2 /*find previous file in directory*/
/*functions*/
unsigned char FindDrive2(void);
unsigned char FileSearch2(struct file2TYPE *file, unsigned char mode);
unsigned char FileNextSector2(struct file2TYPE *file);
unsigned char FileRead2(struct file2TYPE *file);
unsigned char FileWrite2(struct file2TYPE *file);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -