Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

Code Block
languagecpp
linenumberstrue
 void  FS_DevDrvAdd (FS_DEV_API  *p_dev_drv,

...


                     FS_ERR      *p_err);

...

...


...

File

...

...

Called from

...

...

Code enabled by

...

fs.c

...

...

Application

...

...

N/A

Anchor11073991107399Adds a device driver to the file system. Anchor11044311104431

Arguments

...

10915751091575p_dev_drv Anchor11403041140304

Pointer to device driver (see

...

Device Driver).

...

10915761091576p_err Anchor11403151140315

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

...

...

FS_ERR_NONE

...

classWebWorks_Indent_2

...

...

Device driver added.

...

...

FS_ERR_NULL_PTR

...

classWebWorks_Indent_2

...

Argument p_dev_drv passed a NULL pointer.

...

classWebWorks_Indent_1

...

FS_ERR_DEV_DRV_ALREADY_ADDED

...

...

Device driver already added.

...

...

classWebWorks_Indent_1

...

FS_ERR_DEV_DRV_INVALID_NAME

...

...

Device driver name invalid.

...

classWebWorks_Indent_1

...

FS_ERR_DEV_DRV_NO_TBL_POS_AVAIL

...

classWebWorks_Indent_2

...

No device driver table position available.

...

Returned Value

...

None. Anchor10998291099829

Notes/Warnings

...

  1. The NameGet() device driver interface function must return a valid name:

...

...

  1. The name must be unique (e.g., a name that is not returned by any other device driver);

...

...

  1. The name must not include any of the characters: ‘:’, ‘\’ or ‘/’.

...

  1. The name must contain fewer than FS_CFG_MAX_DEV_DRV_NAME_LEN characters;

...

...

  1. The name must not be an empty string.

...

  1. 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).