nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
device_location.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#ifndef _DEVICE_LOCATION_H_
8#define _DEVICE_LOCATION_H_
9
17#include <zephyr/bluetooth/audio/audio.h>
18#include <audio_defines.h>
19
20#ifndef DEVICE_LOCATION_DEFAULT
21#define DEVICE_LOCATION_DEFAULT BT_AUDIO_LOCATION_FRONT_LEFT
22#endif /* DEVICE_LOCATION_DEFAULT */
23
24static const char HS_LOC_L_TAG[] = "HL";
25static const char HS_LOC_R_TAG[] = "HR";
26static const char HS_LOC_LR_TAG[] = "HS";
27static const char HS_LOC_OTHER_TAG[] = "H*";
28static const char GW_TAG[] = "GW";
29
35void device_location_get(enum bt_audio_location *location);
36
37#if CONFIG_DEVICE_LOCATION_SET_RUNTIME
43void device_location_set(enum bt_audio_location location);
44#endif /* LOCATION_SET_RUNTIME */
45
46#endif /* _DEVICE_LOCATION_H_ */
Globally accessible audio related defines.
void device_location_get(enum bt_audio_location *location)
Get assigned audio location.
static const char HS_LOC_R_TAG[]
Definition device_location.h:25
static const char HS_LOC_L_TAG[]
Definition device_location.h:24
static const char HS_LOC_OTHER_TAG[]
Definition device_location.h:27
static const char GW_TAG[]
Definition device_location.h:28
static const char HS_LOC_LR_TAG[]
Definition device_location.h:26