...
FS_FLAGS mode
FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
| Application;
| N/A |
...
name_full
Name of the file. See section 4-3 “μCthe sub-topic "µC/FS File and Directory Names and Paths” for information about file namesPaths" in the topic Useful Information.
mode
File access mode (see Notes #1 and #2).
...
Returned Value
None.
Notes/Warnings
- The access mode should be the logical OR of one or more flags :
FS_FILE_ACCESS_MODE_RD
File opened for reads.
...
File data will be cached.
- If
FS_FILE_ACCESS_MODE_TRUNC
is set, thenFS_FILE_ACCESS_MODE_WR
must also be set. - If
FS_FILE_ACCESS_MODE_EXCL
is set, thenFS_FILE_ACCESS_MODE_CREATE
must also be set. FS_FILE_ACCESS_MODE_RD
and/orFS_FILE_ACCESS_MODE_WR
must be set.- The mode string argument of
fs_fopen()
function can specify a subset of the possible valid modes for this function. The equivalent modes offs_fopen()
mode strings are shown in Table 5-4.
fopen() Mode String | mode Equivalent |
“r” or “rb” |
|
“w” or “wb” |
|
“a” or “ab” |
|
“r+” or “rb+” or “r+b” |
|
“w+” or “wb+” or “w+b” |
|
“a+” or “ab+” or “a+b” |
|
...