nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
hid_keymap.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
10
11
#ifndef _HID_KEYMAP_H_
12
#define _HID_KEYMAP_H_
13
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include <stdint.h>
26
#include "
hid_report_desc.h
"
27
29
struct
hid_keymap
{
30
uint16_t
key_id
;
31
uint16_t
usage_id
;
32
uint8_t
report_id
;
33
};
34
45
void
hid_keymap_init
(
void
);
46
57
const
struct
hid_keymap
*
hid_keymap_get
(uint16_t
key_id
);
58
59
#ifdef __cplusplus
60
}
61
#endif
62
66
67
#endif
/*_HID_KEYMAP_H_ */
hid_keymap_get
const struct hid_keymap * hid_keymap_get(uint16_t key_id)
Get mapping from key ID to HID usage ID.
hid_keymap_init
void hid_keymap_init(void)
Initialize HID keymap.
hid_report_desc.h
Header file HID report identifiers.
hid_keymap::usage_id
uint16_t usage_id
Definition
hid_keymap.h:31
hid_keymap::report_id
uint8_t report_id
Definition
hid_keymap.h:32
hid_keymap::key_id
uint16_t key_id
Definition
hid_keymap.h:30
hid_keymap
HID keymap entry.
Definition
hid_keymap.h:29
applications
nrf_desktop
src
util
hid_keymap.h
Generated on
for nRF Connect SDK API by
1.17.0