DMCP interface 03.15_021
|
FatFs file functions. More...
Topics | |
File Access Mode | |
File access mode and open method flags (3rd argument of f_open()) | |
Data Structures | |
struct | FIL |
FatFs file structure used in file operations. More... | |
Macros | |
#define | f_size(fp) |
File size. | |
#define | f_tell(fp) |
File position. | |
#define | f_eof(fp) |
File EOF indicator. | |
#define | EOF (-1) |
EOF character definition. | |
Enumerations | |
enum | FRESULT { FR_OK = 0 , FR_DISK_ERR , FR_INT_ERR , FR_NOT_READY , FR_NO_FILE , FR_NO_PATH , FR_INVALID_NAME , FR_DENIED , FR_EXIST , FR_INVALID_OBJECT , FR_WRITE_PROTECTED , FR_INVALID_DRIVE , FR_NOT_ENABLED , FR_NO_FILESYSTEM , FR_MKFS_ABORTED , FR_TIMEOUT , FR_LOCKED , FR_NOT_ENOUGH_CORE , FR_TOO_MANY_OPEN_FILES , FR_INVALID_PARAMETER } |
File function return code (FRESULT) More... | |
Functions | |
FRESULT | f_open (FIL *fp, const TCHAR *path, BYTE mode) |
Open or create a file. | |
FRESULT | f_close (FIL *fp) |
Close an open file object. | |
FRESULT | f_read (FIL *fp, void *buff, UINT btr, UINT *br) |
Read data from the file. | |
FRESULT | f_write (FIL *fp, const void *buff, UINT btw, UINT *bw) |
Write data to the file. | |
FRESULT | f_lseek (FIL *fp, FSIZE_t ofs) |
Move file pointer of the file object. | |
FRESULT | f_rename (const TCHAR *path_old, const TCHAR *path_new) |
Rename/Move a file or directory. | |
FRESULT | f_unlink (const TCHAR *path) |
Delete an existing file or directory. | |
FatFs file functions.
Used FatFS version R0.12c - for doc see (http://elm-chan.org/fsw/ff/00index_e.html).
Note that only functions mentioned here are supported.
#define f_eof | ( | fp | ) |
File EOF indicator.
#define f_size | ( | fp | ) |
File size.
#define f_tell | ( | fp | ) |
File position.
enum FRESULT |
File function return code (FRESULT)