static volatile uint64_t count
Num.
disk_result_t
Disk access result codes.
disk_ioctl_t
Generic disk I/O control commands.
disk_status_t
Disk status flags.
@ DISK_RESULT_IO_ERROR
Unrecoverable I/O error.
@ DISK_RESULT_INVALID_ARG
Invalid argument.
@ DISK_RESULT_WR_PROTECTED
Write-protected medium.
@ DISK_RESULT_NO_INIT
Device not initialized.
@ DISK_IOCTL_GET_SECTOR_SIZE
Get the sector size through the uint16_t pointed to by buff.
@ DISK_IOCTL_GET_BLOCK_SIZE
Get the erase block size (in sectors) through the uint32_t pointed to by buff.
@ DISK_IOCTL_GET_SECTOR_COUNT
Get the sector count through the uint32_t pointed to by buff.
@ DISK_IOCTL_CTRL_SYNC
Synchronize the cached writes to persistent storage.
@ DISK_IOCTL_CTRL_TRIM
Trim the sector range within the uint32_t boundaries pointed to by buff.
@ DISK_STATUS_WRITABLE
Writable medium.
@ DISK_STATUS_INIT
Device initialized and ready to work.
@ DISK_STATUS_DISK
Medium present in the drive.
@ DISK_STATUS_ERROR
Device error.
Disk driver API structure.
disk_result_t(* read)(uint8_t dev, void *buff, uint32_t sector, uint32_t count)
Read sector(s).
disk_status_t(* status)(uint8_t dev)
Get device status.
disk_status_t(* initialize)(uint8_t dev)
Initialize device.
disk_result_t(* ioctl)(uint8_t dev, uint8_t cmd, void *buff)
Control device-specific features.
disk_result_t(* write)(uint8_t dev, const void *buff, uint32_t sector, uint32_t count)
Write sector(s).