CPU_BOOLEAN FSFile_IsOpen (CPU_CHAR *name_full,
FS_FLAGS *p_mode
FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
| Application; | N/A |
Test if file is already open.
Arguments
name_full
Name of the file. See the sub-topic "µC/FS File and Directory Names and Paths" in the topic Useful Information.
p_mode
Pointer to variable that will receive the file access mode (see Opening Files for the description the file access mode).
p_err
Pointer to variable that will receive the return error code from this function:
FS_ERR_NONE
Error indicator obtained.
FS_ERR_NULL_PTR
Argument p_file
passed a NULL pointer.
FS_ERR_BUF_NONE_AVAIL
No buffer available.
FS_ERR_ENTRY_NOT_FILE
Entry not a file.
FS_ERR_NAME_INVALID
Invalid file name or path.
FS_ERR_VOL_INVALID_SEC_NBR
Invalid sector number found in directory entry.
Returned Value
DEF_NO
if file is not open
DEF_YES
if file is open.
Notes/Warnings
None.