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

◆ dult_motion_detector_cb_register()

int dult_motion_detector_cb_register ( const struct dult_user * user,
const struct dult_motion_detector_cb * cb )

#include <include/dult.h>

Register motion detector callbacks.

This function registers callbacks to handle motion detector activities defined in the Motion detector feature from the DULT specification. This API can only be used when the

CONFIG_DULT_MOTION_DETECTOR 

Kconfig option is enabled. If this configuration is active, this function must be called after registering the DULT user with dult_user_register and before enabling DULT with dult_enable function.

Parameters
userUser structure used to authenticate the user.
cbMotion detector callback structure.
Returns
0 if the operation was successful. Otherwise, a (negative) error code is returned.