nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
bt_le_audio_tx.h File Reference
#include <zephyr/net_buf.h>
#include <zephyr/sys/atomic.h>
#include <zephyr/bluetooth/audio/audio.h>
#include <zephyr/bluetooth/audio/bap.h>
#include <zephyr/bluetooth/audio/cap.h>
#include "zbus_common.h"
#include "le_audio.h"
#include "audio_defines.h"

Go to the source code of this file.

Data Structures

struct  le_audio_tx_info
 
struct  tx_inf
 
struct  bt_le_audio_tx_ctx
 

Macros

#define HCI_ISO_BUF_PER_CHAN   2
 
#define SUBGROUP_MAX   1
 
#define TX_STREAMS_MAX   CONFIG_BT_ISO_MAX_CHAN
 
#define TX_BUF_NUM   (TX_STREAMS_MAX * HCI_ISO_BUF_PER_CHAN)
 
#define BT_LE_AUDIO_TX_DEFINE(name)
 
#define BT_LE_AUDIO_TX_DEFINE_INDEXED(name, group_idx, subgroup_idx)
 

Functions

int bt_le_audio_tx_send (struct bt_le_audio_tx_ctx *ctx, struct net_buf const *const audio_frame, struct le_audio_tx_info *tx, uint8_t num_tx)
 Sends N channels of synchronized audio data to the controller.
 
int bt_le_audio_tx_stream_started (struct bt_le_audio_tx_ctx *ctx, struct stream_index stream_idx)
 Initializes per-stream TX bookkeeping when a stream enters streaming state.
 
int bt_le_audio_tx_stream_sent (struct bt_le_audio_tx_ctx *ctx, struct stream_index stream_idx)
 Releases one outstanding TX pool allocation for the provided stream.
 
int bt_le_audio_tx_init (struct bt_le_audio_tx_ctx *ctx, bool is_clock_master)
 Initializes the TX path context and shared ISO flush worker.