HID Add-on API
1.0.99
Loading...
Searching...
No Matches
hid_keymap_def_keyboard.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#include "
hid_keymap.h
"
8
#include <caf/key_id.h>
9
10
/* This configuration file is included only once from hid_state module and holds
11
* information about mapping between buttons and generated reports.
12
*/
13
14
/* This structure enforces the header file is included only once in the build.
15
* Violating this requirement triggers a multiple definition error at link time.
16
*/
17
const
struct
{}
hid_keymap_def_include_once
;
18
19
/*
20
* HID keymap. The Consumer Control keys are defined in section 15 of
21
* the HID Usage Tables document under the following URL:
22
* https://www.usb.org/sites/default/files/hut1_12.pdf
23
*/
24
static
const
struct
hid_keymap
hid_keymap
[] = {
25
{ KEY_ID(0x00, 0x00), 0x0004,
REPORT_ID_KEYBOARD_KEYS
},
/* A */
26
{ KEY_ID(0x00, 0x01), 0x0005,
REPORT_ID_KEYBOARD_KEYS
},
/* B */
27
{ KEY_ID(0x00, 0x02), 0x00E1,
REPORT_ID_KEYBOARD_KEYS
},
/* left shift */
28
29
{ KEY_ID(0x00, 0x04), 0x0004,
REPORT_ID_KEYBOARD_KEYS
},
/* A */
30
{ KEY_ID(0x00, 0x05), 0x0005,
REPORT_ID_KEYBOARD_KEYS
},
/* B */
31
{ KEY_ID(0x00, 0x06), 0x0006,
REPORT_ID_KEYBOARD_KEYS
},
/* C */
32
{ KEY_ID(0x00, 0x07), 0x0007,
REPORT_ID_KEYBOARD_KEYS
},
/* D */
33
{ KEY_ID(0x00, 0x08), 0x0008,
REPORT_ID_KEYBOARD_KEYS
},
/* E */
34
{ KEY_ID(0x00, 0x09), 0x0009,
REPORT_ID_KEYBOARD_KEYS
},
/* F */
35
{ KEY_ID(0x00, 0x0A), 0x000A,
REPORT_ID_KEYBOARD_KEYS
},
/* G */
36
{ KEY_ID(0x00, 0x0B), 0x000B,
REPORT_ID_KEYBOARD_KEYS
},
/* H */
37
{ KEY_ID(0x00, 0x0C), 0x000C,
REPORT_ID_KEYBOARD_KEYS
},
/* I */
38
{ KEY_ID(0x00, 0x0D), 0x000D,
REPORT_ID_KEYBOARD_KEYS
},
/* J */
39
{ KEY_ID(0x00, 0x0E), 0x000E,
REPORT_ID_KEYBOARD_KEYS
},
/* K */
40
{ KEY_ID(0x00, 0x0F), 0x000F,
REPORT_ID_KEYBOARD_KEYS
},
/* L */
41
{ KEY_ID(0x00, 0x10), 0x0010,
REPORT_ID_KEYBOARD_KEYS
},
/* M */
42
{ KEY_ID(0x00, 0x11), 0x0011,
REPORT_ID_KEYBOARD_KEYS
},
/* N */
43
{ KEY_ID(0x00, 0x12), 0x0012,
REPORT_ID_KEYBOARD_KEYS
},
/* O */
44
{ KEY_ID(0x00, 0x13), 0x0013,
REPORT_ID_KEYBOARD_KEYS
},
/* P */
45
{ KEY_ID(0x00, 0x14), 0x0014,
REPORT_ID_KEYBOARD_KEYS
},
/* Q */
46
{ KEY_ID(0x00, 0x15), 0x0015,
REPORT_ID_KEYBOARD_KEYS
},
/* R */
47
{ KEY_ID(0x00, 0x16), 0x0016,
REPORT_ID_KEYBOARD_KEYS
},
/* S */
48
{ KEY_ID(0x00, 0x17), 0x0017,
REPORT_ID_KEYBOARD_KEYS
},
/* T */
49
{ KEY_ID(0x00, 0x18), 0x0018,
REPORT_ID_KEYBOARD_KEYS
},
/* U */
50
{ KEY_ID(0x00, 0x19), 0x0019,
REPORT_ID_KEYBOARD_KEYS
},
/* V */
51
{ KEY_ID(0x00, 0x1A), 0x001A,
REPORT_ID_KEYBOARD_KEYS
},
/* W */
52
{ KEY_ID(0x00, 0x1B), 0x001B,
REPORT_ID_KEYBOARD_KEYS
},
/* X */
53
{ KEY_ID(0x00, 0x1C), 0x001C,
REPORT_ID_KEYBOARD_KEYS
},
/* Y */
54
{ KEY_ID(0x00, 0x1D), 0x001D,
REPORT_ID_KEYBOARD_KEYS
},
/* Z */
55
56
{ KEY_ID(0x00, 0x2C), 0x002C,
REPORT_ID_KEYBOARD_KEYS
},
/* spacebar */
57
};
REPORT_ID_KEYBOARD_KEYS
@ REPORT_ID_KEYBOARD_KEYS
Definition
hid_report_desc.h:44
hid_keymap.h
HID keymap header.
hid_keymap_def_include_once
const struct @16 hid_keymap_def_include_once
hid_keymap
HID keymap entry.
Definition
hid_keymap.h:29
applications
nrf_desktop
configuration
nrf54l15dk_nrf54l15_cpuapp
hid_keymap_def_keyboard.h
Generated on Fri Oct 23 2026 14:29:46 for HID Add-on API by
1.12.0