| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
nrf_drv_pdm_config_t Struct Reference
PDM driver

PDM interface driver configuration structure. More...

`#include <nrf_drv_pdm.h>`

## Data Fields
nrf_pdm_mode_t | mode
| Interface operation mode.
nrf_pdm_edge_t | edge
| Sampling mode.
uint8_t | pin_clk
| CLK pin.
uint8_t | pin_din
| DIN pin.
nrf_pdm_freq_t | clock_freq
| Clock frequency.
nrf_pdm_gain_t | gain_l
| Left channel gain.
nrf_pdm_gain_t | gain_r
| Right channel gain.
uint8_t | interrupt_priority
| Interrupt priority.
uint16_t | buffer_length
| Length of a single buffer (in 16-bit words).
int16_t * | buffer_a
| Sample buffer A (filled first).
int16_t * | buffer_b
| Sample buffer B (filled after buffer A).

## Detailed Description

PDM interface driver configuration structure.