📄 c_fat.h
字号:
#ifndef __LIB_fat_h
#define __LIB_fat_h
/* initialize the file system */
extern unsigned char c_nand_fat_initialize(void);
/* opens the file indicated by the input path name. If the pathname
* points to a valid file, the file is added to the list of currently
* opened files for reading and the unique file handle is returned. */
extern int c_nand_fat_openRead(char *pathname, unsigned long *fileSize);
/* reads the content of the file identified by the input handle. It reads from
* where the last read operation on the same file ended. If it's the first time
* the file is being read, it starts from the begining of the file. */
extern int c_nand_fat_readWord(long buf);
extern int c_nand_fat_OffsetReadWord(long offset, long buf);
/* closes the file indicated by the input */
extern int c_nand_fat_close(void);
/* change current directory to the dirname directory. */
extern int c_nand_fat_ChangeDir(const char *dirname);
/* List the content of the current directory. It lists from where the last
* list operation on the same directory ended. If it's the first time the
* directory is being read, it starts from the begining of the directory. */
extern int c_nand_fat_GetDirList(unsigned char *dirbuf, unsigned long start, int num, unsigned char *typeMask, int cDir);
extern int c_nand_fat_GetDirNum(unsigned char *typeMask, int cDir);
/* Set address to save flash block mapping table */
extern int c_nand_flash_SetTableAddr(void);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* initialize the file system */
extern unsigned char c_sd_fat_initialize(void);
/* opens the file indicated by the input path name. If the pathname
* points to a valid file, the file is added to the list of currently
* opened files for reading and the unique file handle is returned. */
extern int c_sd_fat_openRead(char *pathname, unsigned long *fileSize);
/* reads the content of the file identified by the input handle. It reads from
* where the last read operation on the same file ended. If it's the first time
* the file is being read, it starts from the begining of the file. */
extern int c_sd_fat_readWord(long buf);
/* closes the file indicated by the input */
extern int c_sd_fat_close(void);
/* change current directory to the dirname directory. */
extern int c_sd_fat_ChangeDir(const char *dirname);
/* List the content of the current directory. It lists from where the last
* list operation on the same directory ended. If it's the first time the
* directory is being read, it starts from the begining of the directory. */
extern int c_sd_fat_GetDirList(unsigned char *dirbuf, unsigned long start, int num, unsigned char *typeMask, int cDir);
extern int c_sd_fat_GetDirNum(unsigned char *typeMask, int cDir);
#include "c_spi.h"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -