File access control and file status flags (FIL.flag)
More...
File access control and file status flags (FIL.flag)
#define FA_CREATE_ALWAYS 0x08 |
Creates a new file. If the file is existing, it is truncated and overwritten.
Definition at line 397 of file ff.h.
#define FA_CREATE_NEW 0x04 |
Creates a new file. The function fails with FR_EXIST if the file is existing.
Definition at line 392 of file ff.h.
#define FA_OPEN_ALWAYS 0x10 |
Opens the file if it is existing. If not, a new file is created.
To append data to the file, use f_lseek() function after file open in this method.
- Examples:
- sdcard.c.
Definition at line 402 of file ff.h.
#define FA_OPEN_EXISTING 0x00 |
Opens the file. The function fails if the file is not existing. (Default)
Definition at line 378 of file ff.h.
Specifies read access to the object. Data can be read from the file. Combine with FA_WRITE for read-write access.
- Examples:
- sdcard.c.
Definition at line 371 of file ff.h.
Specifies write access to the object. Data can be written to the file. Combine with FA_READ for read-write access.
- Examples:
- sdcard.c.
Definition at line 385 of file ff.h.