Debian Codegraph @

ports/stm32/usbhost/Class/HID/Inc/usbh_hid_parser.h

raw
1 /**
2 ******************************************************************************
3 * @file usbh_hid_parser.c
4 * @author MCD Application Team
5 * @version V3.0.0
6 * @date 18-February-2014
7 * @brief This file is the header file of the usbh_hid_parser.c
8 ******************************************************************************
9 * @attention
10 *
11 * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
12 *
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
16 *
17 * http://www.st.com/software_license_agreement_liberty_v2
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ******************************************************************************
26 */
27 #ifndef _HID_PARSER_H_
28 #define _HID_PARSER_H_
29
30 /* Includes ------------------------------------------------------------------*/
31 #include "usbh_hid.h"
32 #include "usbh_hid_usage.h"
33
34 /** @addtogroup USBH_LIB
35 * @{
36 */
37
38 /** @addtogroup USBH_CLASS
39 * @{
40 */
41
42 /** @addtogroup USBH_HID_CLASS
43 * @{
44 */
45
46 /** @defgroup USBH_HID_PARSER
47 * @brief This file is the Header file for USBH_HID_PARSER.c
48 * @{
49 */
50
51
52 /** @defgroup USBH_HID_PARSER_Exported_Types
53 * @{
54 */
55 typedef struct
56 {
57 uint8_t *data;
58 uint32_t size;
59 uint8_t shift;
60 uint8_t count;
61 uint8_t sign;
62 uint32_t logical_min; /*min value device can return*/
63 uint32_t logical_max; /*max value device can return*/
64 uint32_t physical_min; /*min vale read can report*/
65 uint32_t physical_max; /*max value read can report*/
66 uint32_t resolution;
67 }
68 HID_Report_ItemTypedef;
69
70
71 uint32_t HID_ReadItem (HID_Report_ItemTypedef *ri, uint8_t ndx);
72 uint32_t HID_WriteItem(HID_Report_ItemTypedef *ri, uint32_t value, uint8_t ndx);
73
74
75 /**
76 * @}
77 */
78
79 #endif /* _HID_PARSER_H_ */
80
81 /**
82 * @}
83 */
84
85 /**
86 * @}
87 */
88
89 /**
90 * @}
91 */
92
93 /**
94 * @}
95 */
96 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/