26#define GET_REPORT 0x01
28#define GET_PROTOCOL 0x03
29#define SET_REPORT 0x09
31#define SET_PROTOCOL 0x0B
34#define DESCRIPTOR_HID 0x21
35#define DESCRIPTOR_REPORT 0x22
38#define BOOT_PROTOCOL 0x00
39#define REPORT_PROTOCOL 0x01
42#define REPORT_TYPE_INPUT 0x01
43#define REPORT_TYPE_OUTPUT 0x02
44#define REPORT_TYPE_FEATURE 0x03
62#define LSHIFT (1 << 1)
66#define RSHIFT (1 << 5)
71#define LED_NUM_LOCK (1 << 0)
72#define LED_CAPS_LOCK (1 << 1)
73#define LED_SCROLL_LOCK (1 << 2)
76#define USBHID_BUTTON1 (1 << 0)
77#define USBHID_BUTTON2 (1 << 1)
78#define USBHID_BUTTON3 (1 << 2)
unsigned char bNumDescriptors
Definition usbhid.h:53
unsigned short bcdHID
Definition usbhid.h:51
unsigned char bDescriptorType
Definition usbhid.h:50
unsigned char bLength
Definition usbhid.h:49
unsigned short wReportDescriptorLength
Definition usbhid.h:55
unsigned char bReportDescriptorType
Definition usbhid.h:54
unsigned char bCountryCode
Definition usbhid.h:52