nRF Connect SDK API 3.3.99
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
11#ifndef _HID_KEYMAP_H_
12#define _HID_KEYMAP_H_
13
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26#include "hid_report_desc.h"
27
29struct hid_keymap {
30 uint16_t key_id;
31 uint16_t usage_id;
32 uint8_t report_id;
33};
34
45void hid_keymap_init(void);
46
57const struct hid_keymap *hid_keymap_get(uint16_t key_id);
58
59#ifdef __cplusplus
60}
61#endif
62
67#endif /*_HID_KEYMAP_H_ */
const struct hid_keymap * hid_keymap_get(uint16_t key_id)
Get mapping from key ID to HID usage ID.
void hid_keymap_init(void)
Initialize HID keymap.
Header file HID report identifiers.
uint16_t usage_id
Definition hid_keymap.h:31
uint8_t report_id
Definition hid_keymap.h:32
uint16_t key_id
Definition hid_keymap.h:30
HID keymap entry.
Definition hid_keymap.h:29