GD32F1x0: USB/GD32_USB_Device_Library/Class/msc/inc/usbd_msc_mem.h Source File

GD32F1x0

usbd_msc_mem.h
Go to the documentation of this file.
1 
11 /* Define to prevent recursive inclusion -------------------------------------*/
12 #ifndef __GD32F1X0_USBD_MEM_H
13 #define __GD32F1X0_USBD_MEM_H
14 
15 /* Includes ------------------------------------------------------------------*/
16 #include "usbd_def.h"
17 
18 /* Exported defines ----------------------------------------------------------*/
19 #define USBD_STD_INQUIRY_LENGTH 36
20 
21 /* Exported types ------------------------------------------------------------*/
22 typedef struct _USBD_STORAGE
23 {
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);
31  int8_t *pInquiryData;
33 
34 /* Exported functions ------------------------------------------------------- */
35 extern USBD_STORAGE_cb_TypeDef *USBD_STORAGE_fops;
36 
37 #endif /* __GD32F1X0_USBD_MEM_H */
38 
39 /************************ (C) COPYRIGHT 2014 GIGADEVICE *****END OF FILE****/
General defines for the usb device library.
Generated by   doxygen 1.8.10