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

◆ nrf_dm_get_duration_us()

uint32_t nrf_dm_get_duration_us ( const nrf_dm_config_t * config)

#include <nrf_dm/include/nrf_dm.h>

Get the duration in microseconds that it will take to execute the distance measurement in initiator role with the given configuration. A reflector needs to reserve more time because it needs to be waiting for the initiators initial sync packet.

Note
A call to nrf_dm_proc_execute will take more time to execute for a given config, since that also includes some pre-processing and post-processing. To get the full expected duration use the constant defined below NRF_DM_PROC_EXECUTE_DURATION_OVERHEAD_US : nrf_dm_get_duration_us(&config) + NRF_DM_PROC_EXECUTE_DURATION_OVERHEAD_US
Parameters
[in]configPointer to configuration instance
Returns
Duration in microseconds.