nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
broadcast_sink.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 _BROADCAST_SINK_H_
8#define _BROADCAST_SINK_H_
9
10#include "bt_le_audio_tx.h"
11
21int broadcast_sink_uuid_populate(struct net_buf_simple *uuid_buf);
22
33int broadcast_sink_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant);
34
46
57int broadcast_sink_config_get(uint32_t *bitrate, uint32_t *sampling_rate, uint32_t *pres_delay);
58
67int broadcast_sink_pa_sync_set(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id);
68
78int broadcast_sink_broadcast_code_set(uint8_t *broadcast_code);
79
86
93
100
109
110#endif /* _BROADCAST_SINK_H_ */
int broadcast_sink_start(void)
Start the Bluetooth LE Audio broadcast sink.
int broadcast_sink_config_get(uint32_t *bitrate, uint32_t *sampling_rate, uint32_t *pres_delay)
Get configuration for the audio stream.
int broadcast_sink_uuid_populate(struct net_buf_simple *uuid_buf)
Put the UUIDs from this module into the buffer.
int broadcast_sink_change_active_audio_stream(void)
Change the active audio stream if the broadcast isochronous group (BIG) contains more than one broadc...
int broadcast_sink_stop(void)
Stop the Bluetooth LE Audio broadcast sink.
int broadcast_sink_disable(void)
Disable the LE Audio broadcast (BIS) sink.
int broadcast_sink_adv_populate(struct bt_data *adv_buf, uint8_t adv_buf_vacant)
Put the advertising data from this module into the buffer.
int broadcast_sink_enable(le_audio_receive_cb recv_cb)
Enable the LE Audio broadcast (BIS) sink.
int broadcast_sink_broadcast_code_set(uint8_t *broadcast_code)
Set the broadcast code for the Bluetooth LE Audio broadcast sink. The broadcast code length is define...
int broadcast_sink_pa_sync_set(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id)
Set periodic advertising sync.
void(* le_audio_receive_cb)(const uint8_t *const data, size_t size, bool bad_frame, uint32_t sdu_ref, enum audio_channel channel_index, size_t desired_size)
Callback for receiving Bluetooth LE Audio data.
Definition le_audio.h:54