nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_dm_init()

void nrf_dm_init ( const nrf_dm_ppi_config_t * ppi_cfg,
const nrf_dm_antenna_config_t * antenna_cfg,
NRF_TIMER_Type * timer )

#include <nrf_dm/include/nrf_dm.h>

Initialize the distance measurement procedure.

Parameters
[in]ppi_cfgPPI channels to be used by the library. The required amount of PPI channels is defined by the maximum hamming distance between two successive patterns in nrf_dm_antenna_config_t::switch_pattern divided by two. On the nrf53 series, only 2 DPPI channels are used. A minimum of 2 PPI channels need to be supplied, even if a single antenna is used.
[in]antenna_cfgThe configuration to use for antenna switching
[in]timerWhat timer do you want me to use?