8 typedef unsigned int UINT;
11 typedef unsigned char BYTE;
15 typedef unsigned short WORD;
16 typedef unsigned short WCHAR;
20 typedef unsigned long DWORD;
23 typedef unsigned long long QWORD;
29 typedef DWORD FSIZE_t;
31 typedef struct __FATFS FATFS;
92 #define FA_OPEN_EXISTING 0x00 93 #define FA_CREATE_NEW 0x04 94 #define FA_CREATE_ALWAYS 0x08 95 #define FA_OPEN_ALWAYS 0x10 96 #define FA_OPEN_APPEND 0x30 139 #define f_size(fp) ((fp)->obj.objsize) 140 #define f_tell(fp) ((fp)->fptr) 141 #define f_eof(fp) ((int)((fp)->fptr == (fp)->obj.objsize)) (1) A hard error occurred in the low level disk I/O layer
Definition: ff_ifc.h:108
BYTE * dir_ptr
FIL.dir_ptr.
Definition: ff_ifc.h:74
(18) Number of open files > _FS_LOCK
Definition: ff_ifc.h:125
(4) Could not find the file
Definition: ff_ifc.h:111
FRESULT f_read(FIL *fp, void *buff, UINT btr, UINT *br)
Read data from the file.
DWORD sect
FIL.sect.
Definition: ff_ifc.h:72
(7) Access denied due to prohibited access or directory full
Definition: ff_ifc.h:114
(17) LFN working buffer could not be allocated
Definition: ff_ifc.h:124
DWORD dir_sect
FIL.dir_sect.
Definition: ff_ifc.h:73
FatFs file structure used in file operations.
Definition: ff_ifc.h:66
(8) Access denied due to prohibited access
Definition: ff_ifc.h:115
BYTE err
FIL.err.
Definition: ff_ifc.h:69
FRESULT f_rename(const TCHAR *path_old, const TCHAR *path_new)
Rename/Move a file or directory.
FRESULT
File function return code (FRESULT)
Definition: ff_ifc.h:106
(0) Succeeded
Definition: ff_ifc.h:107
FRESULT f_write(FIL *fp, const void *buff, UINT btw, UINT *bw)
Write data to the file.
DWORD clust
FIL.clust.
Definition: ff_ifc.h:71
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Open or create a file.
DWORD * cltbl
FIL.cltbl.
Definition: ff_ifc.h:75
(5) Could not find the path
Definition: ff_ifc.h:112
(6) The path name format is invalid
Definition: ff_ifc.h:113
(11) The logical drive number is invalid
Definition: ff_ifc.h:118
FRESULT f_unlink(const TCHAR *path)
Delete an existing file or directory.
BYTE flag
FIL.flag.
Definition: ff_ifc.h:68
(15) Could not get a grant to access the volume within defined period
Definition: ff_ifc.h:122
(16) The operation is rejected according to the file sharing policy
Definition: ff_ifc.h:123
(10) The physical drive is write protected
Definition: ff_ifc.h:117
(3) The physical drive cannot work
Definition: ff_ifc.h:110
(13) There is no valid FAT volume
Definition: ff_ifc.h:120
(14) The f_mkfs() aborted due to any problem
Definition: ff_ifc.h:121
FRESULT f_lseek(FIL *fp, FSIZE_t ofs)
Move file pointer of the file object.
FSIZE_t fptr
FIL.fptr.
Definition: ff_ifc.h:70
_FDID obj
FIL.obj.
Definition: ff_ifc.h:67
(12) The volume has no work area
Definition: ff_ifc.h:119
(19) Given parameter is invalid
Definition: ff_ifc.h:126
(9) The file/directory object is invalid
Definition: ff_ifc.h:116
(2) Assertion failed
Definition: ff_ifc.h:109
FRESULT f_close(FIL *fp)
Close an open file object.