13#ifndef BT_MESH_GEN_LVL_CLI_H__
14#define BT_MESH_GEN_LVL_CLI_H__
31#define BT_MESH_LVL_CLI_INIT(_status_handler) \
33 .status_handler = _status_handler, \
42#define BT_MESH_MODEL_LVL_CLI(_cli) \
43 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_LEVEL_CLI, _bt_mesh_lvl_cli_op, \
45 BT_MESH_MODEL_USER_DATA(struct bt_mesh_lvl_cli, \
56 const struct bt_mesh_model *
model;
58 struct bt_mesh_model_pub
pub;
63 BT_MESH_LVL_OP_DELTA_SET, BT_MESH_LVL_MSG_MAXLEN_DELTA_SET)];
76 struct bt_mesh_msg_ctx *ctx,
99 struct bt_mesh_msg_ctx *ctx,
123 struct bt_mesh_msg_ctx *ctx,
141 struct bt_mesh_msg_ctx *ctx,
171 struct bt_mesh_msg_ctx *ctx,
231 struct bt_mesh_msg_ctx *ctx,
261 struct bt_mesh_msg_ctx *ctx,
265extern const struct bt_mesh_model_op _bt_mesh_lvl_cli_op[];
266extern const struct bt_mesh_model_cb _bt_mesh_lvl_cli_cb;
int bt_mesh_lvl_cli_move_set_unack(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_move_set *move_set)
Trigger a continuous level change in the server without requesting a response.
int bt_mesh_lvl_cli_get(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_lvl_status *rsp)
Get the status of the bound server.
int bt_mesh_lvl_cli_delta_set_unack(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_delta_set *delta_set)
Trigger a differential level state change in the server without requesting a response.
int bt_mesh_lvl_cli_delta_set(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_delta_set *delta_set, struct bt_mesh_lvl_status *rsp)
Trigger a differential level state change in the server.
int bt_mesh_lvl_cli_set(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_set *set, struct bt_mesh_lvl_status *rsp)
Set the level state in the server.
int bt_mesh_lvl_cli_set_unack(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_set *set)
Set the level state in the server without requesting a response.
int bt_mesh_lvl_cli_move_set(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_move_set *move_set, struct bt_mesh_lvl_status *rsp)
Trigger a continuous level change in the server.
struct net_buf_simple pub_buf
Definition gen_lvl_cli.h:60
void(*const status_handler)(struct bt_mesh_lvl_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_lvl_status *status)
Level status message handler.
Definition gen_lvl_cli.h:75
uint8_t pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_LVL_OP_DELTA_SET, BT_MESH_LVL_MSG_MAXLEN_DELTA_SET)]
Definition gen_lvl_cli.h:63
struct bt_mesh_msg_ack_ctx ack_ctx
Definition gen_lvl_cli.h:65
struct bt_mesh_model_pub pub
Definition gen_lvl_cli.h:58
const struct bt_mesh_model * model
Definition gen_lvl_cli.h:56
uint8_t tid
Definition gen_lvl_cli.h:67
Definition gen_lvl_cli.h:54