11 #ifndef __GD32F1X0_USBD_IAP_CORE_H
12 #define __GD32F1X0_USBD_IAP_CORE_H
36 #define USB_CUSTOMHID_DESC_SIZE 9
38 #define CUSTOMHID_REPORT_DESC_SIZE 35
39 #define CUSTOMHID_CONFIG_DESC_SIZE 41
41 #define CUSTOMHID_DESC_TYPE 0x21
42 #define CUSTOMHID_REPORT_DESCTYPE 0x22
44 #define GET_REPORT 0x01
46 #define GET_PROTOCOL 0x03
47 #define SET_REPORT 0x09
49 #define SET_PROTOCOL 0x0B
52 #define IAP_OPTION_BYTE 0x01
53 #define IAP_ERASE 0x02
54 #define IAP_DNLOAD 0x03
55 #define IAP_LEAVE 0x04
56 #define IAP_GETBIN_ADDRESS 0x05
58 typedef void (*pAppFunction) (void);
USB device class callback type define.
uint8_t USBD_CUSTOMHID_SendReport(USB_DEVICE_HANDLE *pudev, uint8_t *report, uint16_t Len)
Send custom HID Report.
USB enumeration function prototypes.