2 ******************************************************************************
3 * @file usbd_hid_core.h
4 * @author MCD Application Team
7 * @brief header file for the usbd_hid_core.c file.
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Includes ------------------------------------------------------------------*/
24 #ifndef __USB_HID_CORE_H_
25 #define __USB_HID_CORE_H_
27 #include "usbd_ioreq.h"
29 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
33 /** @defgroup USBD_HID
34 * @brief This file is the Header file for USBD_msc.c
39 /** @defgroup USBD_HID_Exported_Defines
42 #define USB_HID_CONFIG_DESC_SIZ 34
43 #define USB_HID_DESC_SIZ 9
44 #define HID_MOUSE_REPORT_DESC_SIZE 74
46 #define HID_DESCRIPTOR_TYPE 0x21
47 #define HID_REPORT_DESC 0x22
50 #define HID_REQ_SET_PROTOCOL 0x0B
51 #define HID_REQ_GET_PROTOCOL 0x03
53 #define HID_REQ_SET_IDLE 0x0A
54 #define HID_REQ_GET_IDLE 0x02
56 #define HID_REQ_SET_REPORT 0x09
57 #define HID_REQ_GET_REPORT 0x01
63 /** @defgroup USBD_CORE_Exported_TypesDefinitions
74 /** @defgroup USBD_CORE_Exported_Macros
82 /** @defgroup USBD_CORE_Exported_Variables
86 extern USBD_Class_cb_TypeDef USBD_HID_cb;
91 /** @defgroup USB_CORE_Exported_Functions
94 uint8_t USBD_HID_SendReport (USB_OTG_CORE_HANDLE *pdev,
101 #endif // __USB_HID_CORE_H_
110 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/