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

◆ bt_le_audio_tx_init()

int bt_le_audio_tx_init ( struct bt_le_audio_tx_ctx * ctx,
bool is_clock_master )

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

Initializes the TX path context and shared ISO flush worker.

Parameters
[in]ctxPointer to TX context.
[in]is_clock_masterSet to true if this device is a Bluetooth central, (Unicast client) or Broadcast source, false = peripheral (unicast server) or Broadcast sink.

The context memory is cleared and re-initialized while preserving ctx->iso_tx_pool. A shared internal work queue used for deferred ISO flush handling is started once on the first successful call.

Return values
0Success.
-EINVALctx is NULL or required configuration is missing.