Data Structures | |
struct | DIR |
struct | FATFS |
struct | FIL |
struct | FILINFO |
Macros | |
#define | _FATFS 6502 /* Revision ID */ |
#define | _T(x) x |
#define | _TEXT(x) x |
#define | AM_ARC 0x20 /* Archive */ |
#define | AM_DIR 0x10 /* Directory */ |
#define | AM_HID 0x02 /* Hidden */ |
#define | AM_LFN 0x0F /* LFN entry */ |
#define | AM_MASK 0x3F /* Mask of defined bits */ |
#define | AM_RDO 0x01 /* Read only */ |
#define | AM_SYS 0x04 /* System */ |
#define | AM_VOL 0x08 /* Volume label */ |
#define | CREATE_LINKMAP 0xFFFFFFFF |
#define | EOF (-1) |
#define | f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0) |
#define | f_error(fp) (((fp)->flag & FA__ERROR) ? 1 : 0) |
#define | f_size(fp) ((fp)->fsize) |
#define | f_tell(fp) ((fp)->fptr) |
#define | FA__ERROR 0x80 |
#define | FA_OPEN_EXISTING 0x00 |
#define | FA_READ 0x01 |
#define | FS_FAT12 1 |
#define | FS_FAT16 2 |
#define | FS_FAT32 3 |
#define | LD2PD(vol) (vol) /* Each logical drive is bound to the same physical drive number */ |
#define | LD2PT(vol) 0 /* Always mounts the 1st partition or in SFD */ |
#define | LD_DWORD(ptr) (DWORD)(((DWORD)*((BYTE*)(ptr)+3)<<24)|((DWORD)*((BYTE*)(ptr)+2)<<16)|((WORD)*((BYTE*)(ptr)+1)<<8)|*(BYTE*)(ptr)) |
#define | LD_WORD(ptr) (WORD)(((WORD)*((BYTE*)(ptr)+1)<<8)|(WORD)*(BYTE*)(ptr)) |
#define | ST_DWORD(ptr, val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8); *((BYTE*)(ptr)+2)=(BYTE)((DWORD)(val)>>16); *((BYTE*)(ptr)+3)=(BYTE)((DWORD)(val)>>24) |
#define | ST_WORD(ptr, val) *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8) |
Typedefs | |
typedef char | TCHAR |
#define _FATFS 6502 /* Revision ID */ |
#define _T | ( | x | ) | x |
#define _TEXT | ( | x | ) | x |
#define AM_ARC 0x20 /* Archive */ |
#define AM_DIR 0x10 /* Directory */ |
Referenced by f_open(), f_opendir(), and follow_path().
#define AM_HID 0x02 /* Hidden */ |
#define AM_LFN 0x0F /* LFN entry */ |
Referenced by dir_find(), and dir_read().
#define AM_MASK 0x3F /* Mask of defined bits */ |
Referenced by dir_find(), and dir_read().
#define AM_RDO 0x01 /* Read only */ |
Referenced by f_open().
#define AM_SYS 0x04 /* System */ |
#define AM_VOL 0x08 /* Volume label */ |
Referenced by dir_find(), and dir_read().
#define CREATE_LINKMAP 0xFFFFFFFF |
Referenced by f_lseek().
#define EOF (-1) |
#define f_eof | ( | fp | ) | (((fp)->fptr == (fp)->fsize) ? 1 : 0) |
#define f_error | ( | fp | ) | (((fp)->flag & FA__ERROR) ? 1 : 0) |
#define f_size | ( | fp | ) | ((fp)->fsize) |
#define f_tell | ( | fp | ) | ((fp)->fptr) |
#define FA_OPEN_EXISTING 0x00 |
Referenced by integrity_check(), main(), and program_memory().
#define FA_READ 0x01 |
Referenced by f_open(), f_read(), integrity_check(), main(), and program_memory().
#define FS_FAT12 1 |
Referenced by chk_mounted(), and get_fat().
#define FS_FAT16 2 |
Referenced by chk_mounted(), and get_fat().
#define FS_FAT32 3 |
Referenced by chk_mounted(), dir_sdi(), and get_fat().
#define LD2PD | ( | vol | ) | (vol) /* Each logical drive is bound to the same physical drive number */ |
Referenced by chk_mounted().
#define LD2PT | ( | vol | ) | 0 /* Always mounts the 1st partition or in SFD */ |
Referenced by chk_mounted().
#define LD_DWORD | ( | ptr | ) | (DWORD)(((DWORD)*((BYTE*)(ptr)+3)<<24)|((DWORD)*((BYTE*)(ptr)+2)<<16)|((WORD)*((BYTE*)(ptr)+1)<<8)|*(BYTE*)(ptr)) |
Referenced by check_fs(), chk_mounted(), f_open(), get_fat(), and get_fileinfo().
Referenced by check_fs(), chk_mounted(), cmp_lfn(), get_fat(), get_fileinfo(), and pick_lfn().
#define ST_DWORD | ( | ptr, | |
val | |||
) | *(BYTE*)(ptr)=(BYTE)(val); *((BYTE*)(ptr)+1)=(BYTE)((WORD)(val)>>8); *((BYTE*)(ptr)+2)=(BYTE)((DWORD)(val)>>16); *((BYTE*)(ptr)+3)=(BYTE)((DWORD)(val)>>24) |
Referenced by f_open().
typedef char TCHAR |
enum FRESULT |
References Tbl.
Referenced by create_name(), and get_fileinfo().
Referenced by cmp_lfn(), and create_name().