STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
usbh_hid_parser.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive -----------------------------------------------*/
29 #ifndef __USBH_HID_PARSER_H
30 #define __USBH_HID_PARSER_H
31 
32 #ifdef __cplusplus
33  extern "C" {
34 #endif
35 
36 /* Includes ------------------------------------------------------------------*/
37 #include "usbh_hid.h"
38 #include "usbh_hid_usage.h"
39 
61 typedef struct
62 {
63  uint8_t *data;
64  uint32_t size;
65  uint8_t shift;
66  uint8_t count;
67  uint8_t sign;
68  uint32_t logical_min; /*min value device can return*/
69  uint32_t logical_max; /*max value device can return*/
70  uint32_t physical_min; /*min vale read can report*/
71  uint32_t physical_max; /*max value read can report*/
72  uint32_t resolution;
73 }
75 
76 
77 uint32_t HID_ReadItem (HID_Report_ItemTypedef *ri, uint8_t ndx);
78 uint32_t HID_WriteItem(HID_Report_ItemTypedef *ri, uint32_t value, uint8_t ndx);
79 
80 
85 #ifdef __cplusplus
86 }
87 #endif
88 
89 #endif /* __USBH_HID_PARSER_H */
90 
106 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint32_t HID_WriteItem(HID_Report_ItemTypedef *ri, uint32_t value, uint8_t ndx)
HID_WriteItem The function write a report item.
This file contains all the prototypes for the usbh_hid.c.
uint32_t HID_ReadItem(HID_Report_ItemTypedef *ri, uint8_t ndx)
HID_ReadItem The function read a report item.