ARMEBS4  revision-26.06.2015
usbd_hid_core.h
1 #include "heivs/config.h"
2 #if (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE)
3 /**
4  ******************************************************************************
5  * @file usbd_hid_core.h
6  * @author MCD Application Team
7  * @version V1.1.0
8  * @date 19-March-2012
9  * @brief header file for the usbd_hid_core.c file.
10  ******************************************************************************
11  * @attention
12  *
13  * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
14  *
15  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
16  * You may not use this file except in compliance with the License.
17  * You may obtain a copy of the License at:
18  *
19  * http://www.st.com/software_license_agreement_liberty_v2
20  *
21  * Unless required by applicable law or agreed to in writing, software
22  * distributed under the License is distributed on an "AS IS" BASIS,
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24  * See the License for the specific language governing permissions and
25  * limitations under the License.
26  *
27  ******************************************************************************
28  */
29 
30 /* Includes ------------------------------------------------------------------*/
31 
32 #ifndef __USB_HID_CORE_H_
33 #define __USB_HID_CORE_H_
34 
35 #include "usbd_ioreq.h"
36 
37 /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
38  * @{
39  */
40 
41 /** @defgroup USBD_HID
42  * @brief This file is the Header file for USBD_msc.c
43  * @{
44  */
45 
46 
47 /** @defgroup USBD_HID_Exported_Defines
48  * @{
49  */
50 #define USB_HID_CONFIG_DESC_SIZ 34
51 #define USB_HID_DESC_SIZ 9
52 #define HID_MOUSE_REPORT_DESC_SIZE 74
53 
54 #define HID_DESCRIPTOR_TYPE 0x21
55 #define HID_REPORT_DESC 0x22
56 
57 
58 #define HID_REQ_SET_PROTOCOL 0x0B
59 #define HID_REQ_GET_PROTOCOL 0x03
60 
61 #define HID_REQ_SET_IDLE 0x0A
62 #define HID_REQ_GET_IDLE 0x02
63 
64 #define HID_REQ_SET_REPORT 0x09
65 #define HID_REQ_GET_REPORT 0x01
66 /**
67  * @}
68  */
69 
70 
71 /** @defgroup USBD_CORE_Exported_TypesDefinitions
72  * @{
73  */
74 
75 
76 /**
77  * @}
78  */
79 
80 
81 
82 /** @defgroup USBD_CORE_Exported_Macros
83  * @{
84  */
85 
86 /**
87  * @}
88  */
89 
90 /** @defgroup USBD_CORE_Exported_Variables
91  * @{
92  */
93 
94 extern USBD_Class_cb_TypeDef USBD_HID_cb;
95 /**
96  * @}
97  */
98 
99 /** @defgroup USB_CORE_Exported_Functions
100  * @{
101  */
102 uint8_t USBD_HID_SendReport (USB_OTG_CORE_HANDLE *pdev,
103  uint8_t *report,
104  uint16_t len);
105 /**
106  * @}
107  */
108 
109 #endif // __USB_HID_CORE_H_
110 /**
111  * @}
112  */
113 
114 /**
115  * @}
116  */
117 
118 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
119 #endif /* (USE_STM32_USB_HOST_MODE || USE_STM32_USB_USE_DEVICE_MODE || USE_STM32_USB_OTG_MODE) */
libheivs configuration file