disk_status_t(* status)(uint8_t dev)
Get device status.
Disk driver API structure.
disk_result_t(* ioctl)(uint8_t dev, uint8_t cmd, void *buff)
Control device-specific features.
Synchronize the cached writes to persistent storage.
disk_result_t
Disk access result codes.
disk_status_t
Disk status flags.
disk_result_t(* write)(uint8_t dev, const void *buff, uint32_t sector, uint32_t count)
Write sector(s).
disk_ioctl_t
Generic disk I/O control commands.
disk_status_t(* initialize)(uint8_t dev)
Initialize device.
disk_result_t(* read)(uint8_t dev, void *buff, uint32_t sector, uint32_t count)
Read sector(s).
Get the sector count through the uint32_t pointed to by buff.
Medium present in the drive.
Trim the sector range within the uint32_t boundaries pointed to by buff.
Get the sector size through the uint16_t pointed to by buff.
Device initialized and ready to work.
Get the erase block size (in sectors) through the uint32_t pointed to by buff.