![]() |
nRF Connect SDK API 3.3.99
|
| int bt_fast_pair_fhn_motion_detector_cb_register | ( | const struct bt_fast_pair_fhn_motion_detector_cb * | cb | ) |
#include <include/bluetooth/fast_pair/fhn/fhn.h>
Register motion detector callbacks.
This function registers callbacks to handle motion detector activities defined in the Motion detector feature from the DULT specification. This API can only be used when the
CONFIG_BT_FAST_PAIR_FHN_DULT_MOTION_DETECTOR
Kconfig option is enabled. If this configuration is active, this function must be called before you enable Fast Pair with the bt_fast_pair_enable function. Otherwise, the enable operation fails.
You can call this function only in the disabled state of the FHN module (see bt_fast_pair_is_ready function).
This function must be called in the cooperative thread context or in the system initialization context (SYS_INIT macro).
| cb | Motion detector callback structure. |