void FS_DevDrvAdd (FS_DEV_API *p_dev_drv,
FS_ERR *p_err);
File |
Called from |
Code enabled by |
|
Application |
N/A |
Adds a device driver to the file system.
Arguments
p_dev_drv
Pointer to device driver (see Section C.08).
p_err
Pointer to variable that will receive the return error code from this function:
FS_ERR_NONE
Device driver added.
FS_ERR_NULL_PTR
Argument p_dev_drv
passed a NULL pointer.
FS_ERR_DEV_DRV_ALREADY_ADDED
Device driver already added.
FS_ERR_DEV_DRV_INVALID_NAME
Device driver name invalid.
FS_ERR_DEV_DRV_NO_TBL_POS_AVAIL
No device driver table position available.
Returned Value
None.
Notes/Warnings
NameGet()
device driver interface function must return a valid name:FS_CFG_MAX_DEV_DRV_NAME_LEN
characters;Init()
device driver interface function is called to initialize driver structures and any hardware for detecting the presence of devices (for a removable medium).