![]() |
nRF Connect SDK API 3.4.99
|
| int dult_bt_anos_cb_register | ( | const struct dult_user * | user, |
| const struct dult_bt_anos_cb * | cb ) |
#include <include/dult/bt.h>
Register DULT Bluetooth ANOS callback structure.
Registering this callback structure is OPTIONAL.
This function must be called after registering the DULT user with dult_user_register and before enabling DULT with dult_enable.
With the v1 API (
CONFIG_DULT_API_VARIANT_V1
) the callback is cleared by dult_reset, which is the terminal teardown for that variant; it must be registered again after a subsequent dult_user_register. With the v2 API (
CONFIG_DULT_API_VARIANT_V2
) the callback is preserved across dult_reset calls and cleared only by dult_user_unregister.
| [in] | user | User structure used to authenticate the user. |
| [in] | cb | DULT Bluetooth ANOS callback structure. |