nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
zbus_common.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef _ZBUS_COMMON_H_
8#define _ZBUS_COMMON_H_
9
10#include <zephyr/bluetooth/audio/audio.h>
11
12#include "le_audio.h"
13
14#define ZBUS_READ_TIMEOUT_MS K_MSEC(100)
15#define ZBUS_ADD_OBS_TIMEOUT_MS K_MSEC(200)
16
17/***** Messages for zbus ******/
18
22
27
38
41 struct bt_conn *conn;
42 struct bt_le_per_adv_sync *pa_sync;
43 enum bt_audio_dir dir;
44 uint8_t set_size;
45 uint8_t const *sirk;
47};
48
54 uint32_t tx_sync_ts_us;
55 uint32_t curr_ts_us;
56 bool adjust;
57};
58
69
72 struct bt_conn *conn;
73 uint8_t index;
74 struct bt_le_ext_adv *ext_adv;
75 struct bt_le_per_adv_sync *pa_sync;
76 uint32_t broadcast_id;
78};
79
87
88struct volume_msg {
90 uint8_t volume;
91};
92
97
101
102#endif /* _ZBUS_COMMON_H_ */
struct bt_le_per_adv_sync * pa_sync
Definition zbus_common.h:75
struct bt_conn * conn
Definition zbus_common.h:72
enum bt_mgmt_evt_type event
Definition zbus_common.h:71
uint8_t index
Definition zbus_common.h:73
uint32_t broadcast_id
Definition zbus_common.h:76
uint8_t pa_sync_term_reason
Definition zbus_common.h:77
struct bt_le_ext_adv * ext_adv
Definition zbus_common.h:74
Definition zbus_common.h:70
uint32_t button_pin
Definition zbus_common.h:24
enum button_action button_action
Definition zbus_common.h:25
Definition zbus_common.h:23
enum content_control_evt_type event
Definition zbus_common.h:99
Definition zbus_common.h:98
struct bt_le_per_adv_sync * pa_sync
Definition zbus_common.h:42
uint8_t set_size
Definition zbus_common.h:44
struct bt_conn * conn
Definition zbus_common.h:41
enum le_audio_evt_type event
Definition zbus_common.h:40
uint8_t const * sirk
Definition zbus_common.h:45
struct stream_index idx
Definition zbus_common.h:46
enum bt_audio_dir dir
Definition zbus_common.h:43
Definition zbus_common.h:39
uint32_t curr_ts_us
Definition zbus_common.h:55
uint32_t tx_sync_ts_us
Definition zbus_common.h:54
bool adjust
Definition zbus_common.h:56
Definition zbus_common.h:53
Definition le_audio.h:69
enum volume_evt_type event
Definition zbus_common.h:89
uint8_t volume
Definition zbus_common.h:90
Definition zbus_common.h:88
le_audio_evt_type
Definition zbus_common.h:28
@ LE_AUDIO_EVT_STREAMING
Definition zbus_common.h:31
@ LE_AUDIO_EVT_NOT_STREAMING
Definition zbus_common.h:32
@ LE_AUDIO_EVT_COORD_SET_DISCOVERED
Definition zbus_common.h:36
@ LE_AUDIO_EVT_NO_VALID_CFG
Definition zbus_common.h:35
@ LE_AUDIO_EVT_CONFIG_RECEIVED
Definition zbus_common.h:29
@ LE_AUDIO_EVT_STREAM_SENT
Definition zbus_common.h:33
@ LE_AUDIO_EVT_SYNC_LOST
Definition zbus_common.h:34
@ LE_AUDIO_EVT_PRES_DELAY_SET
Definition zbus_common.h:30
button_action
Definition zbus_common.h:19
@ BUTTON_PRESS
Definition zbus_common.h:20
bt_mgmt_evt_type
Definition zbus_common.h:59
@ BT_MGMT_BROADCAST_CODE_RECEIVED
Definition zbus_common.h:67
@ BT_MGMT_EXT_ADV_WITH_PA_READY
Definition zbus_common.h:60
@ BT_MGMT_SECURITY_CHANGED
Definition zbus_common.h:62
@ BT_MGMT_DISCONNECTED
Definition zbus_common.h:65
@ BT_MGMT_PA_SYNCED
Definition zbus_common.h:63
@ BT_MGMT_PA_SYNC_LOST
Definition zbus_common.h:64
@ BT_MGMT_BROADCAST_SINK_DISABLE
Definition zbus_common.h:66
@ BT_MGMT_CONNECTED
Definition zbus_common.h:61
volume_evt_type
Definition zbus_common.h:80
@ VOLUME_DOWN
Definition zbus_common.h:82
@ VOLUME_SET
Definition zbus_common.h:83
@ VOLUME_MUTE
Definition zbus_common.h:84
@ VOLUME_UP
Definition zbus_common.h:81
@ VOLUME_UNMUTE
Definition zbus_common.h:85
content_control_evt_type
Definition zbus_common.h:93
@ MEDIA_START
Definition zbus_common.h:94
@ MEDIA_STOP
Definition zbus_common.h:95