12 #ifndef __GD32F1X0_USBD_MEM_H
13 #define __GD32F1X0_USBD_MEM_H
19 #define USBD_STD_INQUIRY_LENGTH 36
24 int8_t (*Init) (uint8_t Lun);
25 int8_t (*GetCapacity) (uint8_t Lun, uint32_t *block_num, uint32_t *block_size);
26 int8_t (*IsReady) (uint8_t Lun);
27 int8_t (*IsWriteProtected) (uint8_t Lun);
28 int8_t (*Read) (uint8_t Lun, uint8_t *buf, uint32_t BlkAddr, uint16_t BlkLen);
29 int8_t (*Write) (uint8_t Lun, uint8_t *buf, uint32_t BlkAddr, uint16_t BlkLen);
30 int8_t (*GetMaxLun) (void);
General defines for the usb device library.