Smart Remote 3 nRF52 v1.2
Typedefs | Functions | Variables
Audio driver

Audio top-level driver. More...

Typedefs

typedef void(* drv_audio_buffer_handler_t )(int16_t *p_buffer)
 Audio buffer handler.
 

Functions

ret_code_t drv_audio_disable (void)
 Disable audio source. More...
 
ret_code_t drv_audio_enable (void)
 Enable audio source. More...
 
ret_code_t drv_audio_init (nrf_balloc_t const *p_buffer_pool, drv_audio_buffer_handler_t buffer_handler)
 Initialization. More...
 

Variables

const nrf_cli_cmd_entry_t drv_audio_subcmds
 CLI subcommands of the codec.
 

Detailed Description

Audio top-level driver.

Function Documentation

ret_code_t drv_audio_disable ( void  )

Disable audio source.

Return values
NRF_SUCCESS
NRF_ERROR_INTERNAL
ret_code_t drv_audio_enable ( void  )

Enable audio source.

Return values
NRF_SUCCESS
NRF_ERROR_INTERNAL
ret_code_t drv_audio_init ( nrf_balloc_t const *  p_buffer_pool,
drv_audio_buffer_handler_t  buffer_handler 
)

Initialization.

Parameters
[in]p_buffer_poolPointer to memory poll from which buffers will be allocated.
[in]buffer_handlerHandler which will be called when buffer with RAW audio is ready.
Return values
NRF_SUCCESS
NRF_ERROR_INVALID_PARAM
NRF_ERROR_INTERNAL

Documentation feedback | Developer Zone | Subscribe | Updated