Nordic Thingy:52 v2.2.0
Microphone driver

Microphone driver API. More...

Data Structures

struct  m_audio_frame_t
 Compressed audio frame representation. More...
 

Typedefs

typedef uint32_t(* drv_mic_data_handler_t) (m_audio_frame_t *p_frame)
 Microphone driver data handler callback type.
 

Functions

uint32_t drv_mic_init (drv_mic_data_handler_t data_handler)
 Function for initializing the microphone driver. More...
 
uint32_t drv_mic_start (void)
 Function for starting the microphone driver. More...
 
uint32_t drv_mic_stop (void)
 Function for stopping the microphone driver. More...
 

Detailed Description

Microphone driver API.

Function Documentation

◆ drv_mic_init()

uint32_t drv_mic_init ( drv_mic_data_handler_t  data_handler)

Function for initializing the microphone driver.

Parameters
[in]data_handlerPointer data handler callback.
Return values
NRF_SUCCESSIf initialization was successful.

◆ drv_mic_start()

uint32_t drv_mic_start ( void  )

Function for starting the microphone driver.

Return values
NRF_SUCCESSIf initialization was successful.

◆ drv_mic_stop()

uint32_t drv_mic_stop ( void  )

Function for stopping the microphone driver.

Return values
NRF_SUCCESSIf initialization was successful.