![]() |
nRF Connect SDK API 3.4.99
|
| int dult_multi_user_cb_register | ( | const struct dult_user * | user, |
| const struct dult_multi_user_cb * | cb ) |
#include <include/dult/multi_user.h>
Register the DULT multi-user coexistence callbacks for a user.
This function must be called after dult_user_register. The callback structure must remain valid while the user is registered: it is preserved across dult_reset and cleared by dult_user_unregister.
The callbacks are invoked from the system workqueue, decoupled from the dult_enable / dult_reset call that caused the transition. Transitions are delivered in order, but when they are produced faster than the workqueue drains them (repeated dult_enable / dult_reset within a single execution context without yielding) cancelling transitions may be dropped, so intermediate states can be lost. Driving the DULT user lifecycle (registering, unregistering, enabling or resetting a user) from within the callback is allowed.
| user | User structure used to authenticate the user. |
| cb | Multi-user callback structure. |