![]() |
nRF Connect SDK API 3.4.99
|
| 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.
| user | User structure used to authenticate the user. |
| cb | Identifier read state callback structure. |