12 #ifndef __GD32F10X_USBD_DESC_H
13 #define __GD32F10X_USBD_DESC_H
35 #define USB_DEVICE_DESC_SIZE 0x12
36 #define USB_LANGID_STRING_SIZE 0x04
37 #define USB_SERIAL_STRING_SIZE 0x06
39 #define DEVICE_ID (0x40022100)
48 extern uint8_t USBD_StrDesc[USB_STR_DESC_MAX_SIZE];
58 void Get_SerialString(
void);
60 uint8_t* USBD_USER_DevDesc (uint8_t USBSpeed, uint16_t *len);
61 uint8_t* USBD_USER_LANGIDStrDesc (uint8_t USBSpeed, uint16_t *len);
62 uint8_t* USBD_USER_MFCStrDesc (uint8_t USBSpeed, uint16_t *len);
63 uint8_t* USBD_USER_ProdStrDesc (uint8_t USBSpeed, uint16_t *len);
64 uint8_t* USBD_USER_SerialStrDesc (uint8_t USBSpeed, uint16_t *len);
65 uint8_t* USBD_USER_ConfigStrDesc (uint8_t USBSpeed, uint16_t *len);
66 uint8_t* USBD_USER_ItfStrDesc (uint8_t USBSpeed, uint16_t *len);
68 #ifdef USB_SUPPORT_USER_STRING_DESC
69 uint8_t* USBD_USER_UserStringDesc (uint8_t USBSpeed, uint8_t idx, uint16_t *len);
USB device descriptor callback type define.
Device Driver Header file.
USB enumeration function prototypes.
General defines for the usb device library.