mikroSDK Reference Manual
|
Mode Flags used by file_open API. More...
Macros | |
#define | FS_FILE_READ 0x01 |
: Specifies read access to the file. Data can be read from the file. | |
#define | FS_FILE_WRITE 0x02 |
: Specifies write access to the file. Data can be written to the file. Combine with FS_FILE_READ for read-write access. | |
#define | FS_FILE_OPEN_EXISTING 0x00 |
: Opens a file. The function fails if the file is not existing. | |
#define | FS_FILE_CREATE_NEW 0x04 |
: Creates a new file. The function fails, if the file is existing. | |
#define | FS_FILE_CREATE_ALWAYS 0x08 |
: Creates a new file. If the file is existing, it will be truncated and overwritten. | |
#define | FS_FILE_OPEN_ALWAYS 0x10 |
: Opens the file if it is existing. If not, a new file will be created. | |
#define | FS_FILE_OPEN_APPEND 0x30 |
: Same as FS_FILE_OPEN_ALWAYS except the read/write pointer is set at the end of the file. | |
Mode Flags used by file_open API, that specifies the type of access and open method for the file. It is specified by a combination of following flags.