GD32F1x0: USB/GD32_USB_Device_Library/Class/IAP/inc/usbd_iap_core.h Source File

GD32F1x0

usbd_iap_core.h
Go to the documentation of this file.
1 
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __GD32F1X0_USBD_IAP_CORE_H
12 #define __GD32F1X0_USBD_IAP_CORE_H
13 
14 /* Includes ------------------------------------------------------------------*/
15 #include "usbd_enum.h"
16 
36 #define USB_CUSTOMHID_DESC_SIZE 9
37 
38 #define CUSTOMHID_REPORT_DESC_SIZE 35
39 #define CUSTOMHID_CONFIG_DESC_SIZE 41
40 
41 #define CUSTOMHID_DESC_TYPE 0x21
42 #define CUSTOMHID_REPORT_DESCTYPE 0x22
43 
44 #define GET_REPORT 0x01
45 #define GET_IDLE 0x02
46 #define GET_PROTOCOL 0x03
47 #define SET_REPORT 0x09
48 #define SET_IDLE 0x0A
49 #define SET_PROTOCOL 0x0B
50 
51 /* Special commands with download request */
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
57 
58 typedef void (*pAppFunction) (void);
59 
68 extern USBD_Class_cb_TypeDef USBD_CUSTOMHID_cb;
69 
79  uint8_t *report,
80  uint16_t Len);
81 
86 #endif /* __GD32F1X0_USB_IAP_CORE_H */
87 
104 /************************ (C) COPYRIGHT 2014 GIGADEVICE *****END OF FILE****/
USB device class callback type define.
Definition: usb_core.h:153
uint8_t USBD_CUSTOMHID_SendReport(USB_DEVICE_HANDLE *pudev, uint8_t *report, uint16_t Len)
Send custom HID Report.
USB enumeration function prototypes.
Generated by   doxygen 1.8.10