1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
33
34
37
38
41
42
46
47
48
51
52
53
58
59
60
63
64
67
68
69
70
73
74
77
80
81
84
87
88
91
92
93
94
97
98
99
100
101
102
103
104
107
108
111
112
115
116
119
/* ... */
#ifndef __USBH_HID_MOUSE_H
#define __USBH_HID_MOUSE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "usbh_hid.h"
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
typedef struct _HID_MOUSE_Info
{
uint8_t x;
uint8_t y;
uint8_t buttons[3];
...}
HID_MOUSE_Info_TypeDef;
/* ... */
/* ... */
#ifndef USBH_HID_MOUSE_REPORT_SIZE
#define USBH_HID_MOUSE_REPORT_SIZE 0x8U
#endif
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
USBH_StatusTypeDef USBH_HID_MouseInit(USBH_HandleTypeDef *phost);
HID_MOUSE_Info_TypeDef *USBH_HID_GetMouseInfo(USBH_HandleTypeDef *phost);
/* ... */
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif
/* ... */
/* ... */
/* ... */
/* ... */