14#ifndef BT_MESH_GEN_LOC_CLI_H__
15#define BT_MESH_GEN_LOC_CLI_H__
19#include <zephyr/sys/util.h>
33#define BT_MESH_LOC_CLI_INIT(_handlers) \
35 .handlers = _handlers, \
44#define BT_MESH_MODEL_LOC_CLI(_cli) \
45 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_LOCATION_CLI, \
46 _bt_mesh_loc_cli_op, &(_cli)->pub, \
47 BT_MESH_MODEL_USER_DATA(struct bt_mesh_loc_cli, \
61 struct bt_mesh_msg_ctx *ctx,
72 struct bt_mesh_msg_ctx *ctx,
87 struct bt_mesh_model_pub
pub;
91 uint8_t
pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_LOC_OP_GLOBAL_SET,
92 BT_MESH_LOC_MSG_LEN_GLOBAL_SET)];
94 const struct bt_mesh_model *
model;
117 struct bt_mesh_msg_ctx *ctx,
140 struct bt_mesh_msg_ctx *ctx,
157 struct bt_mesh_msg_ctx *ctx,
180 struct bt_mesh_msg_ctx *ctx,
203 struct bt_mesh_msg_ctx *ctx,
220 struct bt_mesh_msg_ctx *ctx,
224extern const struct bt_mesh_model_op _bt_mesh_loc_cli_op[];
225extern const struct bt_mesh_model_cb _bt_mesh_loc_cli_cb;
int bt_mesh_loc_cli_global_get(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_loc_global *rsp)
Get the global location of the bound srv.
int bt_mesh_loc_cli_local_set(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_local *loc, struct bt_mesh_loc_local *rsp)
Set the Local Location in the server.
int bt_mesh_loc_cli_global_set(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_global *loc, struct bt_mesh_loc_global *rsp)
Set the Global Location in the server.
int bt_mesh_loc_cli_local_set_unack(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_local *loc)
Set the Local Location in the server without requesting a response.
int bt_mesh_loc_cli_local_get(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_loc_local *rsp)
Get the local location of the bound srv.
int bt_mesh_loc_cli_global_set_unack(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_global *loc)
Set the Global Location in the server without requesting a response.
void(*const global_status)(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_global *status)
Global Location status message handler.
Definition: gen_loc_cli.h:60
void(*const local_status)(struct bt_mesh_loc_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_loc_local *status)
Local Location status message handler.
Definition: gen_loc_cli.h:71
Definition: gen_loc_cli.h:52
struct net_buf_simple pub_buf
Definition: gen_loc_cli.h:89
const struct bt_mesh_model * model
Definition: gen_loc_cli.h:94
struct bt_mesh_model_pub pub
Definition: gen_loc_cli.h:87
struct bt_mesh_msg_ack_ctx ack_ctx
Definition: gen_loc_cli.h:85
uint8_t pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_LOC_OP_GLOBAL_SET, BT_MESH_LOC_MSG_LEN_GLOBAL_SET)]
Definition: gen_loc_cli.h:92
const struct bt_mesh_loc_cli_handlers *const handlers
Definition: gen_loc_cli.h:83
Definition: gen_loc_cli.h:81