2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
32 #ifndef __USB_HID_CORE_H_
33 #define __USB_HID_CORE_H_
35 #include "usbd_ioreq.h"
50 #define USB_HID_CONFIG_DESC_SIZ 34
51 #define USB_HID_DESC_SIZ 9
52 #define HID_MOUSE_REPORT_DESC_SIZE 74
54 #define HID_DESCRIPTOR_TYPE 0x21
55 #define HID_REPORT_DESC 0x22
58 #define HID_REQ_SET_PROTOCOL 0x0B
59 #define HID_REQ_GET_PROTOCOL 0x03
61 #define HID_REQ_SET_IDLE 0x0A
62 #define HID_REQ_GET_IDLE 0x02
64 #define HID_REQ_SET_REPORT 0x09
65 #define HID_REQ_GET_REPORT 0x01
94 extern USBD_Class_cb_TypeDef USBD_HID_cb;
102 uint8_t USBD_HID_SendReport (USB_OTG_CORE_HANDLE *pdev,
109 #endif // __USB_HID_CORE_H_
libheivs configuration file