CARME-M4 BSP  V1.5
FIL.flag

File access control and file status flags (FIL.flag) More...

+ Collaboration diagram for FIL.flag:

Macros

#define FA_READ   0x01
 
#define FA_OPEN_EXISTING   0x00
 
#define FA_WRITE   0x02
 
#define FA_CREATE_NEW   0x04
 
#define FA_CREATE_ALWAYS   0x08
 
#define FA_OPEN_ALWAYS   0x10
 
#define FA__WRITTEN   0x20
 
#define FA__DIRTY   0x40
 

Detailed Description

File access control and file status flags (FIL.flag)

Macro Definition Documentation

#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.

#define FA_READ   0x01

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.

#define FA_WRITE   0x02

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.