nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ bt_le_audio_tx_send()

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 )

#include <applications/nrf_audio/src/bluetooth/bt_stream/bt_le_audio_tx/bt_le_audio_tx.h>

Allocates buffers and sends data to the controller.

Note
Send all available channels in a single call. Do not call this for each channel.
Parameters
[in]ctxPointer to TX context.
[in]audio_framePointer to the encoded audio data.
[in]txPointer to an array of le_audio_tx_info elements.
[in]num_txNumber of elements in tx.
Return values
0Success.
-EINVALInvalid arguments or invalid audio/frame/stream configuration.
-ECANCELEDCurrent call is intentionally flushed due to previous late timing.
-ETIMEDOUTController timestamp indicates late delivery (empty packet(s) on air).
-EIONo stream was sent successfully.
Returns
Other negative error codes may be propagated from timestamp/HCI operations.