nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
dm_cli.h File Reference
#include <bluetooth/mesh/models.h>
#include <zephyr/bluetooth/addr.h>
#include <zephyr/sys/slist.h>
#include <zephyr/bluetooth/mesh/access.h>
#include "dm_common.h"
#include <dm.h>

Go to the source code of this file.

Data Structures

struct  bt_mesh_dm_cli_results
 
struct  bt_mesh_dm_cli_cfg_status
 
struct  bt_mesh_dm_cli_start
 
struct  bt_mesh_dm_cli_handlers
 
struct  bt_mesh_dm_cli
 

Macros

#define BT_MESH_MODEL_DM_CLI_INIT(_mem, _cnt, _handlers)
 Initialization parameters for a Distance Measurement Client model instance.
 
#define BT_MESH_MODEL_DM_CLI(_cli)
 Distance measurement Client model entry.
 

Functions

int bt_mesh_dm_cli_config (struct bt_mesh_dm_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_dm_cfg *set, struct bt_mesh_dm_cli_cfg_status *rsp)
 Set or get the config state in the Distance Measurement server.
 
int bt_mesh_dm_cli_measurement_start (struct bt_mesh_dm_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_dm_cli_start *start, struct bt_mesh_dm_cli_results *rsp)
 Start a distance measurement on a Distance Measurement server.
 
int bt_mesh_dm_cli_results_get (struct bt_mesh_dm_cli *cli, struct bt_mesh_msg_ctx *ctx, uint8_t entry_cnt, struct bt_mesh_dm_cli_results *rsp)
 Get measurement results from a Distance Measurement server.