1 #ifndef __USBH_HID_MOUSE_H__
2 #define __USBH_HID_MOUSE_H__
3 
4 #include <stdint.h>
5 
6 
7 typedef struct {
8     uint8_t button; // bit0 左键  bit1 右键   bit2 中键
9     uint8_t x;
10     uint8_t y;
11     uint8_t z;      // Not Supported
12 } USBH_HID_Mouse_Data_t;
13 
14 extern USBH_HID_Mouse_Data_t USBH_HID_Mouse_Data;
15 
16 
17 extern USBH_HID_cb_t USBH_HID_Mouse_cb;
18 
19 
20 void USBH_HID_Mouse_Init(void);
21 void USBH_HID_Mouse_Decode(uint8_t *data);
22 
23 
24 #endif // __USBH_HID_MOUSE_H__
25