...
Returned Value
None.
Notes/Warnings
- The return error code from the function SHOULD always be checked by the calling application to determine whether the device was successfully opened. Repeated calls to
FSDev_Open()
resulting in errors that do not indicate failure to open (such asFS_ERR_DEV_LOW_FMT_INVALID
) without matchingFSDev_Close()
calls may exhaust the supply of device structures.- If
FS_ERR_NONE
is returned, then the device has been added to the file system and is immediately accessible. - If
FS_DEV_INVALID_LOW_FMT
is returned, then the device has been added to the file system, but needs to be low-level formatted, though it is present. - If
FS_ERR_DEV_NOT_PRESENT
,FS_ERR_DEV_IO
orFS_ERR_DEV_TIMEOUT
is returned, then the device has been added to the file system, though it is probably not present. The device will need to be either closed and re-added, or refreshed. - If any of the follwing is returned:
- FS_ERR_DEV_INVALID_NAME
- FS_ERR_DEV_INVALID_SEC_SIZE
- FS_ERR_DEV_INVALID_SIZE
- FS_ERR_DEV_INVALID_UNIT_NBR
- FS_ERR_DEV_NONE_AVAIL
...then the device has not been added to the file system.
- If
FS_ERR_DEV_UNKNOWN
is returned, then the device driver is in an indeterminate state. The system MAY need to be restarted and the device driver should be examined for errors. The device has not been added to the file system.
- If