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

◆ dult_bt_anos_cb_register()

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.

Parameters
[in]userUser structure used to authenticate the user.
[in]cbDULT Bluetooth ANOS callback structure.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.