GD32F10x USB-Device: E:/USB Libraries/GD32_USB_Device_Library/Class/hid/inc/usbd_hid_core.h Source File

GD32F103 Firmware

usbd_hid_core.h
Go to the documentation of this file.
1 
11 /* Define to prevent recursive inclusion -------------------------------------*/
12 #ifndef __GD32F10X_USBD_HID_CORE_H
13 #define __GD32F10X_USBD_HID_CORE_H
14 
15 /* Includes ------------------------------------------------------------------*/
16 #include "usbd_core.h"
17 
37 #define USB_HID_CONFIG_DESC_SIZE 34
38 #define USB_HID_DESC_SIZE 9
39 #define USB_HID_REPORT_DESC_SIZE 21
40 
41 #define HID_DESC_TYPE 0x21
42 #define HID_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 
58 extern USBD_Class_cb_TypeDef USBD_HID_cb;
59 
68  uint8_t *report,
69  uint16_t Len);
70 
75 #endif /* __GD32F10X_USB_HID_CORE_H */
76 
93 /************************ (C) COPYRIGHT 2014 GIGADEVICE *****END OF FILE****/
uint8_t USBD_HID_SendReport(USB_DEVICE_HANDLE *pudev, uint8_t *report, uint16_t Len)
Send mouse report.
USB device class callback type define.
Definition: usb_core.h:148
USB device core function protoype.
Generated on Fri Feb 6 2015 14:56:35 for GD32F10x USB-Device by   doxygen 1.8.8