nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
dm.h File Reference
#include <stdlib.h>
#include <zephyr/types.h>
#include <zephyr/kernel.h>
#include <zephyr/bluetooth/addr.h>

Go to the source code of this file.

Data Structures

struct  dm_result
 Distance Measurement result structure. More...
 
struct  dm_cb
 Event callback structure. More...
 
struct  dm_init_param
 DM initialization parameters. More...
 
struct  dm_request
 DM request structure. More...
 

Enumerations

enum  dm_dev_role { DM_ROLE_NONE , DM_ROLE_INITIATOR , DM_ROLE_REFLECTOR }
 Role definition. More...
 
enum  dm_ranging_mode { DM_RANGING_MODE_RTT , DM_RANGING_MODE_MCPD }
 Ranging mode definition. More...
 
enum  dm_quality {
  DM_QUALITY_OK , DM_QUALITY_POOR , DM_QUALITY_DO_NOT_USE , DM_QUALITY_CRC_FAIL ,
  DM_QUALITY_NONE
}
 Measurement quality definition. More...
 

Functions

int dm_init (struct dm_init_param *init_param)
 Initialize the DM.
 
int dm_request_add (struct dm_request *req)
 Add measurement request.