nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ REPORT_MAP_MOUSE

#define REPORT_MAP_MOUSE ( report_id)
Value:
\
/* Report: Mouse */ \
0x09, 0x01, /* Usage (Pointer) */ \
0xA1, 0x00, /* Collection (Physical) */ \
\
0x85, report_id, /* Report ID */ \
\
0x19, 0x01, /* Usage Minimum (1) */ \
0x29, 0x08, /* Usage Maximum (8) */ \
0x15, 0x00, /* Logical Minimum (0) */ \
0x25, 0x01, /* Logical Maximum (1) */ \
0x75, 0x01, /* Report Size (1) */ \
0x95, MOUSE_REPORT_BUTTON_COUNT_MAX, /* Report Count */ \
0x81, 0x02, /* Input (Data, Variable, Absolute) */ \
\
0x09, 0x38, /* Usage (Wheel) */ \
0x15, 0x81, /* Logical Minimum (-127) */ \
0x25, 0x7F, /* Logical Maximum (127) */ \
0x75, 0x08, /* Report Size (8) */ \
0x95, 0x01, /* Report Count (1) */ \
0x81, 0x06, /* Input (Data, Variable, Relative) */ \
\
0x09, 0x30, /* Usage (X) */ \
0x09, 0x31, /* Usage (Y) */ \
0x16, 0x01, 0xF8, /* Logical Maximum (2047) */ \
0x26, 0xFF, 0x07, /* Logical Minimum (-2047) */ \
0x75, 0x0C, /* Report Size (12) */ \
0x95, 0x02, /* Report Count (2) */ \
0x81, 0x06, /* Input (Data, Variable, Relative) */ \
\
0xC0 /* End Collection (Physical) */
report_id
Identification numbers of HID reports.
Definition hid_report_desc.h:37
#define USAGE_PAGE_MOUSE_XY
Definition hid_report_mouse.h:33
#define USAGE_PAGE_MOUSE_WHEEL
Definition hid_report_mouse.h:34
#define USAGE_PAGE_MOUSE_BUTTONS
Definition hid_report_mouse.h:37
#define MOUSE_REPORT_BUTTON_COUNT_MAX
Definition hid_report_mouse.h:45