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

◆ audio_module_data_tx_rx()

int audio_module_data_tx_rx ( struct audio_module_handle handle_tx,
struct audio_module_handle handle_rx,
struct audio_data const *const  audio_data_tx,
struct audio_data audio_data_rx,
k_timeout_t  timeout 
)

#include <include/audio_module/audio_module.h>

Send an audio data to an audio module and retrieve an audio data from an audio module.

Note
The audio data is processed within the module or sequence of modules. The result is returned via the module or final module's output FIFO. All the input data is consumed within the call and thus the input data buffer maybe released once the function returns.
: The data I/O pointers and their associated sizes that are passed via the audio data pointers, can be NULL and/or 0. It is the responsibility of the low level module functions to handle this correctly.
Parameters
handle_tx[in/out] The handle to the module to send the input audio data to.
handle_rx[in/out] The handle to the module to receive audio data from.
audio_data_tx[in] Pointer to the audio data to send.
audio_data_rx[out] Pointer to the audio data received.
timeout[in] Non-negative waiting period to wait for operation to complete (in milliseconds). Use K_NO_WAIT to return without waiting, or K_FOREVER to wait as long as necessary.
Returns
0 if successful, error otherwise.