15#ifndef BT_MESH_GEN_DTT_CLI_H__
16#define BT_MESH_GEN_DTT_CLI_H__
34#define BT_MESH_DTT_CLI_INIT(_status_handler) \
36 .status_handler = _status_handler, \
45#define BT_MESH_MODEL_DTT_CLI(_cli) \
46 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_GEN_DEF_TRANS_TIME_CLI, \
47 _bt_mesh_dtt_cli_op, &(_cli)->pub, \
48 BT_MESH_MODEL_USER_DATA(struct bt_mesh_dtt_cli, \
66 struct bt_mesh_msg_ctx *ctx,
67 int32_t transition_time);
72 struct bt_mesh_model_pub
pub;
76 uint8_t
pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_DTT_OP_SET,
77 BT_MESH_DTT_MSG_LEN_SET)];
79 const struct bt_mesh_model *
model;
103 int32_t *rsp_transition_time);
129 uint32_t transition_time, int32_t *rsp_transition_time);
147 struct bt_mesh_msg_ctx *ctx, uint32_t transition_time);
150extern const struct bt_mesh_model_op _bt_mesh_dtt_cli_op[];
151extern const struct bt_mesh_model_cb _bt_mesh_dtt_cli_cb;
int bt_mesh_dtt_set(struct bt_mesh_dtt_cli *cli, struct bt_mesh_msg_ctx *ctx, uint32_t transition_time, int32_t *rsp_transition_time)
Set the Default Transition Time of the server.
int bt_mesh_dtt_set_unack(struct bt_mesh_dtt_cli *cli, struct bt_mesh_msg_ctx *ctx, uint32_t transition_time)
Set the Default Transition Time of the server without requesting a response.
int bt_mesh_dtt_get(struct bt_mesh_dtt_cli *cli, struct bt_mesh_msg_ctx *ctx, int32_t *rsp_transition_time)
Get the Default Transition Time of the server.
const struct bt_mesh_model * model
Definition: gen_dtt_cli.h:79
void(*const status_handler)(struct bt_mesh_dtt_cli *cli, struct bt_mesh_msg_ctx *ctx, int32_t transition_time)
Default Transition Time status message handler.
Definition: gen_dtt_cli.h:65
struct net_buf_simple pub_buf
Definition: gen_dtt_cli.h:74
struct bt_mesh_model_pub pub
Definition: gen_dtt_cli.h:72
struct bt_mesh_msg_ack_ctx ack_ctx
Definition: gen_dtt_cli.h:70
uint8_t pub_data[BT_MESH_MODEL_BUF_LEN(BT_MESH_DTT_OP_SET, BT_MESH_DTT_MSG_LEN_SET)]
Definition: gen_dtt_cli.h:77
Definition: gen_dtt_cli.h:57