14#include <zephyr/sys/slist.h>
36#define DULT_PRODUCT_DATA_LEN 8
235#define DULT_SOUND_DURATION_BT_GATT_MIN_MS (5000U)
dult_network_id
Definition dult.h:41
@ DULT_NETWORK_ID_APPLE
Definition dult.h:42
@ DULT_NETWORK_ID_GOOGLE
Definition dult.h:43
int dult_motion_detector_cb_register(const struct dult_user *user, const struct dult_motion_detector_cb *cb)
Register motion detector callbacks.
dult_near_owner_state_mode
Definition dult.h:408
@ DULT_NEAR_OWNER_STATE_MODE_COUNT
Definition dult.h:416
@ DULT_NEAR_OWNER_STATE_MODE_NEAR_OWNER
Definition dult.h:413
@ DULT_NEAR_OWNER_STATE_MODE_SEPARATED
Definition dult.h:410
int dult_sound_state_update(const struct dult_user *user, const struct dult_sound_state_param *param)
Update the sound state.
bool dult_user_is_associated(const struct dult_user *user)
Check if the DULT user is the associated user.
bool dult_is_any_associated(void)
Check whether any DULT user is currently associated.
dult_accessory_capability
Definition dult.h:47
@ DULT_ACCESSORY_CAPABILITY_MOTION_DETECTOR_UT_BIT_POS
Definition dult.h:52
@ DULT_ACCESSORY_CAPABILITY_ID_LOOKUP_BLE_BIT_POS
Definition dult.h:58
@ DULT_ACCESSORY_CAPABILITY_ID_LOOKUP_NFC_BIT_POS
Definition dult.h:55
@ DULT_ACCESSORY_CAPABILITY_PLAY_SOUND_BIT_POS
Definition dult.h:49
int dult_near_owner_state_set(const struct dult_user *user, enum dult_near_owner_state_mode mode)
Set the mode of the DULT near-owner state.
dult_sound_src
Definition dult.h:238
@ DULT_SOUND_SRC_MOTION_DETECTOR
Definition dult.h:245
@ DULT_SOUND_SRC_BT_GATT
Definition dult.h:240
@ DULT_SOUND_SRC_EXTERNAL
Definition dult.h:248
int dult_user_unregister(const struct dult_user *user)
Unregister a DULT user.
int dult_sound_cb_register(const struct dult_user *user, const struct dult_sound_cb *cb)
Register DULT sound callback structure.
int dult_user_register(const struct dult_user *user)
Register DULT user.
int dult_enable(const struct dult_user *user)
Enable DULT.
int dult_id_read_state_enter(const struct dult_user *user)
Enter DULT identifier read state.
int dult_id_read_state_cb_register(const struct dult_user *user, const struct dult_id_read_state_cb *cb)
Register DULT identifier read state callback structure.
int dult_battery_level_set(const struct dult_user *user, uint8_t percentage_level)
Set the current battery level.
int dult_reset(const struct dult_user *user)
Reset DULT.
void(* exited)(void)
Identifier read state exited.
Definition dult.h:199
int(* payload_get)(uint8_t *buf, size_t *len)
Get identifier payload.
Definition dult.h:191
void(* start)(void)
Request the user to start the motion detector.
Definition dult.h:357
bool(* period_expired)(void)
Notify the user that the motion detector period has expired.
Definition dult.h:372
void(* stop)(void)
Notify the user that the motion detector can be stopped.
Definition dult.h:381
Motion detector callback structure.
Definition dult.h:348
void(* sound_stop)(enum dult_sound_src src)
Request the user to stop the sound action.
Definition dult.h:277
void(* sound_start)(enum dult_sound_src src)
Request the user to start the sound action.
Definition dult.h:264
enum dult_sound_src src
Definition dult.h:313
bool active
Definition dult.h:305
uint8_t accessory_category
Definition dult.h:87
enum dult_network_id network_id
Definition dult.h:93
const struct dult_version * network_version
Definition dult.h:105
struct dult_version firmware_version
Definition dult.h:96
const char * model_name
Definition dult.h:84
uint32_t accessory_capabilities
Definition dult.h:90
const char * manufacturer_name
Definition dult.h:81
const uint8_t * product_data
Definition dult.h:78
uint8_t minor
Definition dult.h:67
uint16_t major
Definition dult.h:64
uint8_t revision
Definition dult.h:70