...
Code Block | ||||
---|---|---|---|---|
| ||||
void FS_DevDrvAdd (FS_DEV_API *p_dev_drv, |
...
FS_ERR *p_err); |
...
...
...
File |
---|
...
...
Called from |
---|
...
...
Code enabled by |
---|
...
|
...
...
Application |
...
...
N/A |
Anchor
Arguments
...
p_dev_drv
Pointer to device driver (see
...
...
p_err
Pointer to variable that will receive the return error code from this function:
...
...
FS_ERR_NONE
...
class | WebWorks_Indent_2 |
---|
...
...
Device driver added.
...
...
FS_ERR_NULL_PTR
...
class | WebWorks_Indent_2 |
---|
...
Argument p_dev_drv
passed a NULL pointer.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_DEV_DRV_ALREADY_ADDED
...
...
Device driver already added.
...
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_DEV_DRV_INVALID_NAME
...
...
Device driver name invalid.
...
class | WebWorks_Indent_1 |
---|
...
FS_ERR_DEV_DRV_NO_TBL_POS_AVAIL
...
class | WebWorks_Indent_2 |
---|
...
No device driver table position available.
...
Returned Value
...
None. Anchor
Notes/Warnings
...
- The
NameGet()
device driver interface function must return a valid name:
...
...
- The name must be unique (e.g., a name that is not returned by any other device driver);
...
...
- The name must not include any of the characters: ‘:’, ‘\’ or ‘/’.
...
- The name must contain fewer than
FS_CFG_MAX_DEV_DRV_NAME_LEN
characters;
...
...
- The name must not be an empty string.
...
- The
Init()
device driver interface function is called to initialize driver structures and any hardware for detecting the presence of devices (for a removable medium).