void FSDev_AccessLock (CPU_CHAR *name_dev,
CPU_INT32U timeout
FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
| Application | N/A |
Acquire exclusive access to a device. See also section 7-4 “Raw Device IO”.
Arguments
name_dev
Device name.
timeout
Time to wait for a lock in milliseconds.
p_err
Pointer to variable that will receive return error code from this function :
FS_ERR_NONE
Device removed successfully.
FS_ERR_DEV_NOT_OPEN
Device is not open.
FS_ERR_NAME_NULL
Argument name_dev
passed a NULL pointer
FS_ERR_OS_LOCK
Error acquiring device access lock.
FS_ERR_OS_LOCK_TIMEOUT
Time-out waiting for device access lock.
Returned Value
None.
Notes/Warnings
None.