Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

File

Called from

Code enabled by

fs_file.c

Application;
FSFile_Open()

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.

  • No labels