nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
Detecting Unwanted Location Trackers

API for Detecting Unwanted Location Trackers specification implementation. More...

Data Structures

struct  dult_firmware_version
 
struct  dult_user
 
struct  dult_id_read_state_cb
 
struct  dult_sound_cb
 
struct  dult_sound_state_param
 
struct  dult_motion_detector_cb
 Motion detector callback structure. More...
 

Macros

#define DULT_PRODUCT_DATA_LEN   8
 
#define DULT_SOUND_DURATION_BT_GATT_MIN_MS   (5000U)
 

Enumerations

enum  dult_network_id { DULT_NETWORK_ID_APPLE = 0x01 , DULT_NETWORK_ID_GOOGLE = 0x02 }
 
enum  dult_accessory_capability { DULT_ACCESSORY_CAPABILITY_PLAY_SOUND_BIT_POS = 0 , DULT_ACCESSORY_CAPABILITY_MOTION_DETECTOR_UT_BIT_POS = 1 , DULT_ACCESSORY_CAPABILITY_ID_LOOKUP_NFC_BIT_POS = 2 , DULT_ACCESSORY_CAPABILITY_ID_LOOKUP_BLE_BIT_POS = 3 }
 
enum  dult_sound_src { DULT_SOUND_SRC_BT_GATT , DULT_SOUND_SRC_MOTION_DETECTOR , DULT_SOUND_SRC_EXTERNAL }
 
enum  dult_near_owner_state_mode { DULT_NEAR_OWNER_STATE_MODE_SEPARATED , DULT_NEAR_OWNER_STATE_MODE_NEAR_OWNER , DULT_NEAR_OWNER_STATE_MODE_COUNT }
 

Functions

int dult_user_register (const struct dult_user *user)
 Register DULT user.
 
int dult_battery_level_set (const struct dult_user *user, uint8_t percentage_level)
 Set the current battery level.
 
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_id_read_state_enter (const struct dult_user *user)
 Enter DULT identifier read state.
 
int dult_sound_cb_register (const struct dult_user *user, const struct dult_sound_cb *cb)
 Register DULT sound callback structure.
 
int dult_sound_state_update (const struct dult_user *user, const struct dult_sound_state_param *param)
 Update the sound state.
 
int dult_motion_detector_cb_register (const struct dult_user *user, const struct dult_motion_detector_cb *cb)
 Register motion detector callbacks.
 
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.
 
int dult_enable (const struct dult_user *user)
 Enable DULT.
 
int dult_reset (const struct dult_user *user)
 Reset DULT.
 

Detailed Description

API for Detecting Unwanted Location Trackers specification implementation.

The Detecting Unwanted Location Trackers module can be used by location trackers devices to comply with the Detecting Unwanted Location Trackers specification (https://datatracker.ietf.org/doc/draft-detecting-unwanted-location-trackers/). The specification can be used with various location tracking networks. The API is not fully thread-safe and should be called from cooperative thread context.