nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
hid_keyboard_leds_def.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_keyboard_leds.h"
8
9/* This configuration file is included only once from hid_state module and holds
10 * information about LEDs associated with HID keyboard LEDs report.
11 */
12
13/* This structure enforces the header file is included only once in the build.
14 * Violating this requirement triggers a multiple definition error at link time.
15 */
17
18static const struct led_effect keyboard_led_on = LED_EFFECT_LED_ON(LED_COLOR(255, 255, 255));
20
21/* Map HID keyboard LEDs to application LED IDs. */
22static const uint8_t keyboard_led_map[] = {
23};
#define LED_COLOR(_r, _g, _b)
Definition led_effect.h:96
#define LED_EFFECT_LED_OFF()
Definition led_effect.h:132
#define LED_EFFECT_LED_ON(_color)
Definition led_effect.h:116
static const struct led_effect keyboard_led_on
Definition hid_keyboard_leds_def.h:18
static const struct led_effect keyboard_led_off
Definition hid_keyboard_leds_def.h:19
static const uint8_t keyboard_led_map[]
Definition hid_keyboard_leds_def.h:22
const struct @49 hid_keyboard_leds_def_include_once
Single LED effect.
Definition led_effect.h:51