nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
hid_report_consumer_ctrl.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_CONSUMER_CTRL_H_
8#define _HID_REPORT_CONSUMER_CTRL_H_
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define REPORT_SIZE_CONSUMER_CTRL 2 /* bytes */
15
16#define REPORT_MASK_CONSUMER_CTRL {} /* Store the whole report */
17
18#define CONSUMER_CTRL_REPORT_KEY_COUNT_MAX 1
19
20
21#define REPORT_MAP_CONSUMER_CTRL(report_id) \
22 \
23 0x85, report_id, \
24 0x15, 0x00, /* Logical minimum (0) */ \
25 0x26, 0xFF, 0x03, /* Logical maximum (0x3FF) */ \
26 0x19, 0x00, /* Usage minimum (0) */ \
27 0x2A, 0xFF, 0x03, /* Usage maximum (0x3FF) */ \
28 0x75, 0x10, /* Report Size (16) */ \
29 0x95, CONSUMER_CTRL_REPORT_KEY_COUNT_MAX, /* Report Count */ \
30 0x81, 0x00 /* Input (Data,Array,Absolute) */
31
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* _HID_REPORT_CONSUMER_CTRL_H_ */