nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
hid_report_user_config.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _HID_REPORT_USER_CONFIG_H_
8#define _HID_REPORT_USER_CONFIG_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define REPORT_SIZE_USER_CONFIG 29 /* bytes */
15
16
17#define REPORT_MAP_USER_CONFIG(report_id) \
18 \
19 0x85, report_id, \
20 0x06, 0x00, 0xff, /* Usage Page (Vendor Defined 0xFF00) */ \
21 0x0A, 0x01, 0xff, /* Usage (0xFF01) */ \
22 0x15, 0x00, /* Logical Minimum (0) */ \
23 0x26, 0xff, 0x00, /* Logical Maximum (255) */ \
24 0x75, 0x08, /* Report Size (8) */ \
25 0x95, REPORT_SIZE_USER_CONFIG, /* Report Count */ \
26 0xB1, 0x02 /* Feature (Data, Variable, Absolute) */ \
27
28#define REPORT_MAP_USER_CONFIG_OUT(report_id) \
29 \
30 0x85, report_id, \
31 0x06, 0x00, 0xff, /* Usage Page (Vendor Defined 0xFF00) */ \
32 0x0A, 0x02, 0xff, /* Usage (0xFF02) */ \
33 0x15, 0x00, /* Logical Minimum (0) */ \
34 0x26, 0xff, 0x00, /* Logical Maximum (255) */ \
35 0x75, 0x08, /* Report Size (8) */ \
36 0x95, REPORT_SIZE_USER_CONFIG, /* Report Count */ \
37 0x91, 0x02 /* Output (Data, Variable, Absolute) */ \
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* _HID_REPORT_USER_CONFIG_H_ */