Device Drivers
The file system initializes, controls, reads and writes a device using a device driver. A µC/FS device driver has eight interface functions, grouped into a FS_DEV_DRV structure that is registered with the file system (with FS_DevDrvAdd()) as part of application start-up, immediately following FS_Init().
Several restrictions are enforced to preserve the uniqueness of device drivers and simplify management:
- Each device driver must have a unique name.
- No driver may be registered more than once.
- Device drivers cannot be unregistered.
- All device driver functions must be implemented (even if one or more is ‘empty’).
, multiple selections available,