14#ifndef ZEPHYR_INCLUDE_STORAGE_DISK_ACCESS_H_
15#define ZEPHYR_INCLUDE_STORAGE_DISK_ACCESS_H_
Main header file for disk driver API.
int disk_access_ioctl(const char *pdrv, uint8_t cmd, void *buff)
Get/Configure disk parameters.
int disk_access_read(const char *pdrv, uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector)
read data from disk
int disk_access_write(const char *pdrv, const uint8_t *data_buf, uint32_t start_sector, uint32_t num_sector)
write data to disk
disk_access_erase_type
Definition disk_access.h:103
int disk_access_init(const char *pdrv)
perform any initialization
int disk_access_status(const char *pdrv)
Get the status of disk.
int disk_access_erase(const char *pdrv, uint32_t start_sector, uint32_t num_sector, enum disk_access_erase_type erase_type)
erase data from disk
@ DISK_ACCESS_ERASE_PHYSICAL
Erase the physical bytes on the disk to their natural erase value (0x00 or 0xFF)
Definition disk_access.h:105
static void cmd(uint32_t command)
Execute a display list command by co-processor engine.
Definition ft8xx_reference_api.h:153
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88