2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
31 #ifndef __USBH_HID_CORE_H
32 #define __USBH_HID_CORE_H
35 #include "config/usb_conf.h"
36 #if defined(USE_HOST_MODE)
38 #include "stm32/usb/usbh_core.h"
39 #include "stm32/usb/usbh_stdreq.h"
40 #include "stm32/usb/usb_bsp.h"
41 #include "stm32/usb/usbh_ioreq.h"
42 #include "stm32/usb/usbh_hcs.h"
66 #define HID_MIN_POLL 10
84 HID_REQ_GET_REPORT_DESC,
96 void (*Decode) (uint8_t *data);
100 typedef struct _HID_Report
125 typedef struct _HID_Process
133 HID_CtlState ctl_state;
150 #define USB_HID_REQ_GET_REPORT 0x01
151 #define USB_HID_GET_IDLE 0x02
152 #define USB_HID_GET_PROTOCOL 0x03
153 #define USB_HID_SET_REPORT 0x09
154 #define USB_HID_SET_IDLE 0x0A
155 #define USB_HID_SET_PROTOCOL 0x0B
170 extern USBH_Class_cb_TypeDef HID_cb;
179 USBH_Status USBH_Set_Report (USB_OTG_CORE_HANDLE *pdev,
184 uint8_t* reportBuff);
libheivs configuration file