GD32F1x0
|
usbd_storage_template.c
Go to the documentation of this file.
int8_t STORAGE_GetCapacity(uint8_t lun, uint32_t *block_num, uint16_t *block_size)
return medium capacity and block size
Definition: usbd_storage_template.c:110
Header for the STORAGE DISK file.
Definition: usbd_msc_mem.h:22
int8_t STORAGE_IsWriteProtected(uint8_t lun)
check whether the medium is write-protected
Definition: usbd_storage_template.c:130
int8_t STORAGE_IsReady(uint8_t lun)
check whether the medium is ready
Definition: usbd_storage_template.c:120
int8_t STORAGE_Init(uint8_t lun)
Initialize the storage medium.
Definition: usbd_storage_template.c:98
int8_t STORAGE_Read(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
Read data from the medium.
Definition: usbd_storage_template.c:143
int8_t STORAGE_GetMaxLun(void)
Return number of supported logical unit.
Definition: usbd_storage_template.c:170
int8_t STORAGE_Write(uint8_t lun, uint8_t *buf, uint32_t blk_addr, uint16_t blk_len)
Write data to the medium.
Definition: usbd_storage_template.c:158
Generated by
