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

◆ dult_id_read_state_cb_register()

int dult_id_read_state_cb_register ( const struct dult_user * user,
const struct dult_id_read_state_cb * cb )

#include <include/dult/dult.h>

Register DULT identifier read state callback structure.

This function must be called after registering the DULT user with dult_user_register and before enabling DULT with dult_enable function.

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
userUser structure used to authenticate the user.
cbIdentifier read state callback structure.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.