nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
broadcast_source.h File Reference
#include <zephyr/bluetooth/audio/cap.h>
#include <zephyr/bluetooth/audio/bap_lc3_preset.h>
#include "bt_le_audio_tx.h"

Go to the source code of this file.

Data Structures

struct  subgroup_config
 
struct  broadcast_source_big
 
struct  broadcast_source_ext_adv_data
 Advertising data for broadcast source. More...
 
struct  broadcast_source_per_adv_data
 Periodic advertising data for broadcast source. More...
 

Macros

#define BROADCAST_SOURCE_PBA_HEADER_SIZE   (BT_UUID_SIZE_16 + (sizeof(uint8_t) * 2))
 
#define BROADCAST_SOURCE_ADV_NAME_MAX   (32)
 
#define BROADCAST_SOURCE_ADV_ID_START   (BT_UUID_SIZE_16)
 

Functions

int broadcast_source_ext_adv_populate (uint8_t big_index, bool fixed_id, uint32_t broadcast_id, struct broadcast_source_ext_adv_data *ext_adv_data, struct bt_data *ext_adv_buf, size_t ext_adv_buf_vacant)
 Populate the extended advertising data buffer.
 
int broadcast_source_per_adv_populate (uint8_t big_index, struct broadcast_source_per_adv_data *per_adv_data, struct bt_data *per_adv_buf, size_t per_adv_buf_vacant)
 Populate the periodic advertising data buffer.
 
bool broadcast_source_is_streaming (uint8_t big_index)
 Check if the broadcast source is streaming.
 
int broadcast_source_start (uint8_t big_index, struct bt_le_ext_adv *ext_adv)
 Start the Bluetooth LE Audio broadcast (BIS) source.
 
int broadcast_source_stop (uint8_t big_index)
 Stop the Bluetooth LE Audio broadcast (BIS) source.
 
int broadcast_source_id_get (uint8_t big_index, uint32_t *broadcast_id)
 Get the broadcast ID for the given Broadcast Isochronous Group (BIG).
 
int broadcast_source_send (uint8_t big_index, uint8_t subgroup_index, struct le_audio_encoded_audio enc_audio)
 Broadcast the Bluetooth LE Audio data.
 
int broadcast_source_disable (uint8_t big_index)
 Disable the LE Audio broadcast (BIS) source.
 
void broadcast_source_default_create (struct broadcast_source_big *broadcast_param)
 Create a set up for a default broadcaster.
 
int broadcast_source_enable (struct broadcast_source_big const *const broadcast_param, uint8_t big_index)
 Enable the LE Audio broadcast (BIS) source.