GD32F10x USB-Device
V1.0.0
GD32F10x USB-Device
|
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:92
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:112
int8_t STORAGE_IsReady(uint8_t lun)
check whether the medium is ready
Definition: usbd_storage_template.c:102
int8_t STORAGE_Init(uint8_t lun)
Initialize the storage medium.
Definition: usbd_storage_template.c:80
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:125
int8_t STORAGE_GetMaxLun(void)
Return number of supported logical unit.
Definition: usbd_storage_template.c:154
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:141
Generated on Fri Feb 6 2015 14:56:35 for GD32F10x USB-Device by 1.8.8