![]() |
nRF Connect SDK API 3.3.99
|
| int bt_fast_pair_fhn_ring_cb_register | ( | const struct bt_fast_pair_fhn_ring_cb * | cb | ) |
#include <include/bluetooth/fast_pair/fhn/fhn.h>
Register the ringing callbacks in the FHN module.
This function registers the ringing callbacks. If you declare at least one ringing component using the
CONFIG_BT_FAST_PAIR_FHN_RING_COMP
Kconfig choice option, you shall call this API 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 | Ringing callback structure. |