nrfxlib API 0.1.0
|
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.
[in] | ppi_cfg | PPI 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_cfg | The configuration to use for antenna switching |
[in] | timer | What timer do you want me to use? |