nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
led_assignments.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
13#ifndef _LED_ASSIGNMENTS_H_
14#define _LED_ASSIGNMENTS_H_
15
16#include <zephyr/devicetree.h>
17#include <stdint.h>
18
22#define LED_AUDIO_NOT_ASSIGNED 0xFF
23
27#if DT_NODE_EXISTS(DT_NODELABEL(led_device_type))
28#define LED_AUDIO_DEVICE_TYPE DT_NODE_CHILD_IDX(DT_NODELABEL(led_device_type))
29#else
30#define LED_AUDIO_DEVICE_TYPE LED_AUDIO_NOT_ASSIGNED
31#endif
32
33#if DT_NODE_EXISTS(DT_NODELABEL(led_conn_status))
34#define LED_AUDIO_CONN_STATUS DT_NODE_CHILD_IDX(DT_NODELABEL(led_conn_status))
35#else
36#define LED_AUDIO_CONN_STATUS LED_AUDIO_NOT_ASSIGNED
37#endif
38
39#if DT_NODE_EXISTS(DT_NODELABEL(led_app_status))
40#define LED_AUDIO_APP_STATUS DT_NODE_CHILD_IDX(DT_NODELABEL(led_app_status))
41#else
42#define LED_AUDIO_APP_STATUS LED_AUDIO_NOT_ASSIGNED
43#endif
44
45#if DT_NODE_EXISTS(DT_NODELABEL(led_sync_status))
46#define LED_AUDIO_SYNC_STATUS DT_NODE_CHILD_IDX(DT_NODELABEL(led_sync_status))
47#else
48#define LED_AUDIO_SYNC_STATUS LED_AUDIO_NOT_ASSIGNED
49#endif
50
51#endif /* _LED_ASSIGNMENTS_H_ */