Function esp_idf_sys::ff_diskio_register
source ยท pub unsafe extern "C" fn ff_diskio_register(
pdrv: BYTE,
discio_impl: *const ff_diskio_impl_t,
)
Expand description
Register or unregister diskio driver for given drive number.
When FATFS library calls one of disk_xxx functions for driver number pdrv, corresponding function in discio_impl for given pdrv will be called.
@param pdrv drive number @param discio_impl pointer to ff_diskio_impl_t structure with diskio functions or NULL to unregister and free previously registered drive