📄 fat.h
字号:
/*******************************************************************************
(C) Copyright 2006, RAE Systems Inc. All rights reserved
----------------- File Information ---------------------------------------------
File Name: DIR.H
Last Modify Date: 9/19/2006
Discription: FAT operation header file
---------------- Important Notes -----------------------------------------------
----------------- Rivision History ---------------------------------------------
Version: V1.00
Last Modify Date: 9/17/2006
Discription: Initial version, imported from ZLG_FS V1.00, derived from FAT.H
*******************************************************************************/
#ifndef __FAT_H__
#define __FAT_H__
/* General function return code definition */
#define RETURN_OK 0x00 /* Operation successfully */
#define NOT_FIND_DISK 0x01 /* Logical disk not exist */
#define DISK_FULL 0x02 /* Disk full */
#define SECTOR_NOT_IN_CACHE 0x03 /* Sector not cached */
#define NOT_EMPTY_CACHE 0x04 /* No empty cache */
#define SECTOR_READ_ERR 0x05 /* Read sector error */
#define CLUSTER_NOT_IN_DISK 0x06 /* Cluster not in the disk */
#define NOT_FIND_FDT 0x07 /* Not find file/dir */
#define NOT_FAT_DISK 0x08 /* Not FAT disk */
#define FDT_OVER 0x09 /* FDT index overrange */
#define FDT_EXISTS 0x0A /* File/dir already exist */
#define ROOT_FDT_FULL 0x0B /* Root dir full */
#define DIR_EMPTY 0x0C /* Dir empty */
#define DIR_NOT_EMPTY 0x0D /* Dir not empty */
#define PATH_NOT_FIND 0x0E /* Can not find path */
#define FAT_ERR 0x0F /* FAT error */
#define FILE_NAME_ERR 0x10 /* File/dir name error */
#define FILE_EOF 0x11 /* End of file */
#define FILE_LOCK 0x12 /* File locked */
#define NOT_FIND_FILE 0x13 /* Not find specific file */
#define NOT_FIND_DIR 0x14 /* Not find specific dir */
#define NOT_RUN 0xFD /* Command not executed */
#define BAD_COMMAND 0xFE /* Invalid command */
#define PARAMETER_ERR 0xFF /* Invalid parameter */
/* FAT type definition */
#define FAT12 0
#define FAT16 1
#define FAT32 2
extern INT32U FATGetNextClus( INT8U Drive, INT32U Index );
extern void FATSetNextClus( INT8U Drive, INT32U Index, INT32U Next );
extern INT32U FATAddClus( INT8U Drive, INT32U Index );
extern void FATDelClusChain( INT8U Drive, INT32U Index );
#endif /* #ifndef __FAT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -