Merge branch 'jnosky/master'
[fw/stlink] / exampleF4 / STM32_USB_Device_Library / Class / hid / inc / usbd_hid_core.h
1 /**
2   ******************************************************************************
3   * @file    usbd_hid_core.h
4   * @author  MCD Application Team
5   * @version V1.0.0
6   * @date    22-July-2011
7   * @brief   header file for the usbd_hid_core.c file.
8   ******************************************************************************
9   * @attention
10   *
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.
17   *
18   * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19   ******************************************************************************
20   */ 
21
22 /* Includes ------------------------------------------------------------------*/
23
24 #ifndef __USB_HID_CORE_H_
25 #define __USB_HID_CORE_H_
26
27 #include  "usbd_ioreq.h"
28
29 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
30   * @{
31   */
32   
33 /** @defgroup USBD_HID
34   * @brief This file is the Header file for USBD_msc.c
35   * @{
36   */ 
37
38
39 /** @defgroup USBD_HID_Exported_Defines
40   * @{
41   */ 
42 #define USB_HID_CONFIG_DESC_SIZ       34
43 #define USB_HID_DESC_SIZ              9
44 #define HID_MOUSE_REPORT_DESC_SIZE    74
45
46 #define HID_DESCRIPTOR_TYPE           0x21
47 #define HID_REPORT_DESC               0x22
48
49
50 #define HID_REQ_SET_PROTOCOL          0x0B
51 #define HID_REQ_GET_PROTOCOL          0x03
52
53 #define HID_REQ_SET_IDLE              0x0A
54 #define HID_REQ_GET_IDLE              0x02
55
56 #define HID_REQ_SET_REPORT            0x09
57 #define HID_REQ_GET_REPORT            0x01
58 /**
59   * @}
60   */ 
61
62
63 /** @defgroup USBD_CORE_Exported_TypesDefinitions
64   * @{
65   */
66
67
68 /**
69   * @}
70   */ 
71
72
73
74 /** @defgroup USBD_CORE_Exported_Macros
75   * @{
76   */ 
77
78 /**
79   * @}
80   */ 
81
82 /** @defgroup USBD_CORE_Exported_Variables
83   * @{
84   */ 
85
86 extern USBD_Class_cb_TypeDef  USBD_HID_cb;
87 /**
88   * @}
89   */ 
90
91 /** @defgroup USB_CORE_Exported_Functions
92   * @{
93   */ 
94 uint8_t USBD_HID_SendReport (USB_OTG_CORE_HANDLE  *pdev, 
95                                  uint8_t *report,
96                                  uint16_t len);
97 /**
98   * @}
99   */ 
100
101 #endif  // __USB_HID_CORE_H_
102 /**
103   * @}
104   */ 
105
106 /**
107   * @}
108   */ 
109   
110 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/