nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
led_state.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
11#ifndef _LED_STATE_H_
12#define _LED_STATE_H_
13
14#include <zephyr/types.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
39
58
69
70#define LED_UNAVAILABLE 0xFF
71
72#if defined(CONFIG_DESKTOP_BT_PERIPHERAL)
73/* By default, peripheral uses a separate Bluetooth local identity per every Bluetooth peer.
74 * The default local identity cannot be used, because application cannot reset it.
75 * One Bluetooth local identity is reserved for the erase advertising.
76 */
77BUILD_ASSERT(CONFIG_BT_ID_MAX >= 3);
78#define LED_PEER_COUNT (CONFIG_BT_ID_MAX - 2)
79#else
80#define LED_PEER_COUNT 1
81#endif
82
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* _LED_STATE_H_ */
led_peer_state
Peer states represented by LED.
Definition led_state.h:41
@ 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
System states represented by LED.
Definition led_state.h:28
@ LED_SYSTEM_STATE_CHARGING
Definition led_state.h:32
@ LED_SYSTEM_STATE_IDLE
Definition led_state.h:30
@ LED_SYSTEM_STATE_COUNT
Definition led_state.h:37
@ LED_SYSTEM_STATE_ERROR
Definition led_state.h:34
led_id_nrf_desktop
LED identification.
Definition led_state.h:60
@ 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