nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches

◆ dult_test_motion_detector_separated_ut_period_set()

int dult_test_motion_detector_separated_ut_period_set ( const struct dult_test_motion_detector_separated_ut_period * data)

#include <include/dult/test.h>

Override the DULT motion detector separated UT timing parameters.

Replaces the compile-time Kconfig defaults with the supplied runtime values. The new values take effect on the next timer arm; any already-running timer is not restarted.

This API can only be used when the

CONFIG_DULT_MOTION_DETECTOR_TEST_MODE 

Kconfig option is enabled. That option depends on

CONFIG_DULT_MOTION_DETECTOR 

, so the motion detector feature and its functionality must be available for this API to have any effect.

Parameters
[in]dataNew timing parameters, in seconds. Each field must not exceed DULT_TEST_MOTION_DETECTOR_PERIOD_MAX. dult_test_motion_detector_separated_ut_period::timeout_max must be greater than or equal to dult_test_motion_detector_separated_ut_period::timeout_min.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.