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

◆ dult_user_register()

int dult_user_register ( const struct dult_user * user)

#include <include/dult/dult.h>

Register DULT user.

The function must be called before calling any other functions from the DULT user API.

With the v1 API (

CONFIG_DULT_API_VARIANT_V1 

), the DULT subsystem supports only one user at the time. The lifetime of the registered user is limited by the dult_reset API.

With the v2 API (

CONFIG_DULT_API_VARIANT_V2 

), the DULT subsystem supports up to

CONFIG_DULT_USER_MAX 

users that can be registered at the same time. The lifetime of the registered user is then limited by the dult_user_unregister API.

Parameters
userStructure containing user information.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.