| Nordic Thingy:52 v2.0.0

Data Structures | Typedefs | Functions
Microphone driver
Drivers

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_handler | Pointer data handler callback.

Return values

  NRF_SUCCESS | If initialization was successful.

## ◆ drv_mic_start()

uint32_t drv_mic_start | ( | void |  | ) |

Function for starting the microphone driver.

Return values

  NRF_SUCCESS | If initialization was successful.

## ◆ drv_mic_stop()

uint32_t drv_mic_stop | ( | void |  | ) |

Function for stopping the microphone driver.

Return values

  NRF_SUCCESS | If initialization was successful.