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

◆ REPORT_MAP_KEYBOARD

#define REPORT_MAP_KEYBOARD ( report_id_keys,
report_id_leds )
Value:
\
/* Report: Keyboard Keys (input) */ \
0x85, report_id_keys, \
\
/* Keyboard - Modifiers */ \
0x19, KEYBOARD_REPORT_FIRST_MODIFIER, /* Usage Minimum */ \
0x29, KEYBOARD_REPORT_LAST_MODIFIER, /* Usage Maximum */ \
0x15, 0x00, /* Logical Minimum (0) */ \
0x25, 0x01, /* Logical Maximum (1) */ \
0x75, 0x01, /* Report Size (1) */ \
0x95, 0x08, /* Report Count (8) */ \
0x81, 0x02, /* Input (Data, Variable, Absolute) */ \
\
/* Keyboard - Reserved */ \
0x75, 0x08, /* Report Size (8) */ \
0x95, 0x01, /* Report Count (1) */ \
0x81, 0x01, /* Input (Constant) */ \
\
/* Keyboard - Keys */ \
0x19, 0x00, /* Usage Minimum (0) */ \
0x29, KEYBOARD_REPORT_LAST_KEY, /* Usage Maximum */ \
0x15, 0x00, /* Logical Minimum (0) */ \
0x25, KEYBOARD_REPORT_LAST_KEY, /* Logical Maximum */ \
0x75, 0x08, /* Report Size (8) */ \
0x95, KEYBOARD_REPORT_KEY_COUNT_MAX, /* Report Count */ \
0x81, 0x00, /* Input (Data, Array) */ \
\
/* Report: Keyboard LEDS (output) */ \
0x85, report_id_leds, \
\
/* Keyboard - LEDs */ \
0x05, USAGE_PAGE_LEDS, \
0x19, 0x01, /* Usage Minimum (1) */ \
0x29, 0x05, /* Usage Maximum (5) */ \
0x15, 0x00, /* Logical Minimum (0) */ \
0x25, 0x01, /* Logical Maximum (1) */ \
0x95, 0x05, /* Report Count (5) */ \
0x75, 0x01, /* Report Size (1) */ \
0x91, 0x02, /* Output (Data, Variable, Absolute) */ \
\
/* Keyboard - LEDs padding */ \
0x95, 0x01, /* Report Count (1) */ \
0x75, 0x03, /* Report Size (3) (padding) */ \
0x91, 0x01 /* Output (Constant, Array, Absolute) */
#define KEYBOARD_REPORT_LAST_KEY
Definition hid_report_keyboard.h:33
#define KEYBOARD_REPORT_KEY_COUNT_MAX
Definition hid_report_keyboard.h:36
#define KEYBOARD_REPORT_LAST_MODIFIER
Definition hid_report_keyboard.h:35
#define KEYBOARD_REPORT_FIRST_MODIFIER
Definition hid_report_keyboard.h:34
#define USAGE_PAGE_LEDS
Definition hid_report_mouse.h:36
#define USAGE_PAGE_KEYBOARD
Definition hid_report_mouse.h:35