nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
led_state_fast_pair_def.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#include "led_state.h"
8#include <caf/led_effect.h>
9
10/* This configuration file is included only once from led_state module and holds
11 * information about LED effect associated with each state.
12 */
13
14/* This structure enforces the header file is included only once in the build.
15 * Violating this requirement triggers a multiple definition error at link time.
16 */
18
19
20/* Map function to LED ID */
21static const uint8_t led_map[LED_ID_COUNT] = {
24};
25
26/* System state LED is unavailable - leave undefined */
28
#define LED_COLOR(_r, _g, _b)
Definition led_effect.h:96
#define LED_EFFECT_LED_ON_GO_OFF(_color, _on_time, _off_delay)
Definition led_effect.h:143
#define LED_EFFECT_LED_BREATH(_period, _color)
Definition led_effect.h:224
#define LED_EFFECT_LED_BLINK(_period, _color)
Definition led_effect.h:207
#define LED_EFFECT_LED_OFF()
Definition led_effect.h:132
#define LED_EFFECT_LED_CLOCK(_ticks, _color)
Definition led_effect.h:298
@ LED_PEER_STATE_CONNECTED
Definition led_state.h:45
@ LED_PEER_STATE_CONFIRM_ERASE
Definition led_state.h:51
@ LED_PEER_STATE_ERASE_ADV
Definition led_state.h:53
@ LED_PEER_STATE_DISCONNECTED
Definition led_state.h:43
@ LED_PEER_STATE_CONFIRM_SELECT
Definition led_state.h:49
@ LED_PEER_STATE_PEER_SEARCH
Definition led_state.h:47
@ LED_PEER_STATE_COUNT
Definition led_state.h:56
@ LED_SYSTEM_STATE_COUNT
Definition led_state.h:37
@ LED_ID_COUNT
Definition led_state.h:67
@ LED_ID_SYSTEM_STATE
Definition led_state.h:62
@ LED_ID_PEER_STATE
Definition led_state.h:64
#define LED_PEER_COUNT
Definition led_state.h:80
#define LED_UNAVAILABLE
Definition hid_keyboard_leds.h:14
Header file with LED states.
static const uint8_t led_map[LED_ID_COUNT]
Definition led_state_fast_pair_def.h:21
static const struct led_effect led_system_state_effect[LED_SYSTEM_STATE_COUNT]
Definition led_state_fast_pair_def.h:26
const struct @52 led_state_def_include_once
static const struct led_effect led_peer_state_effect[LED_PEER_COUNT][LED_PEER_STATE_COUNT]
Definition led_state_fast_pair_def.h:32
Single LED effect.
Definition led_effect.h:51