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_dev.c

Application

N/A

Refresh a device.Arguments

name_dev

Device name.

p_err

Pointer to variable that will receive the return error code from this function.

FS_ERR_NONE

Device opened successfully.

FS_ERR_DEV_INVALID_SEC_SIZE

Invalid device sector size.

FS_ERR_DEV_INVALID_SIZE

Invalid device size.

FS_ERR_DEV_INVALID_UNIT_NBR

Specified unit number invalid.

FS_ERR_NAME_NULL

Argument name_dev passed a NULL pointer

Or device access error (see µC/FS Error Codes).

Returned Value

DEF_YES, if the device has not changed.

DEF_NO, if the device has not changed.

Notes/Warnings

  1. If device has changed, all volumes open on the device must be refreshed and all files closed and reopened.
  2. A device status change may be caused by
  3. A device was connected, but no longer is.
  4. A device was not connected, but now is.
  5. A different device is connected.
  • No labels