GD32F1x0: USB/GD32_USB_Device_Library/Class/hid/inc/usbd_custom_hid_core.h Source File

GD32F1x0

usbd_custom_hid_core.h
Go to the documentation of this file.
1 
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __GD32F1X0_USBD_CUSTOMHID_CORE_H
12 #define __GD32F1X0_USBD_CUSTOMHID_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 95
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 
59 extern USBD_Class_cb_TypeDef USBD_CUSTOMHID_cb;
60 
70  uint8_t *report,
71  uint16_t Len);
72 
77 #endif /* __GD32F1X0_USB_CUSTOMHID_CORE_H */
78 
95 /************************ (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