nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
gen_lvl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
13#ifndef BT_MESH_GEN_LVL_H__
14#define BT_MESH_GEN_LVL_H__
15
16#include <zephyr/bluetooth/mesh.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#define BT_MESH_LVL_MIN INT16_MIN
26#define BT_MESH_LVL_MAX INT16_MAX
27
31 int16_t lvl;
42};
43
47 int32_t delta;
62};
63
67 int16_t delta;
80};
81
85 int16_t current;
90 int16_t target;
97};
98
100#define BT_MESH_LVL_OP_GET BT_MESH_MODEL_OP_2(0x82, 0x05)
101#define BT_MESH_LVL_OP_SET BT_MESH_MODEL_OP_2(0x82, 0x06)
102#define BT_MESH_LVL_OP_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x07)
103#define BT_MESH_LVL_OP_STATUS BT_MESH_MODEL_OP_2(0x82, 0x08)
104#define BT_MESH_LVL_OP_DELTA_SET BT_MESH_MODEL_OP_2(0x82, 0x09)
105#define BT_MESH_LVL_OP_DELTA_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x0A)
106#define BT_MESH_LVL_OP_MOVE_SET BT_MESH_MODEL_OP_2(0x82, 0x0B)
107#define BT_MESH_LVL_OP_MOVE_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x0C)
108
109#define BT_MESH_LVL_MSG_LEN_GET 0
110#define BT_MESH_LVL_MSG_MINLEN_SET 3
111#define BT_MESH_LVL_MSG_MAXLEN_SET 5
112#define BT_MESH_LVL_MSG_MINLEN_STATUS 2
113#define BT_MESH_LVL_MSG_MAXLEN_STATUS 5
114#define BT_MESH_LVL_MSG_MINLEN_DELTA_SET 5
115#define BT_MESH_LVL_MSG_MAXLEN_DELTA_SET 7
116#define BT_MESH_LVL_MSG_MINLEN_MOVE_SET 3
117#define BT_MESH_LVL_MSG_MAXLEN_MOVE_SET 5
120#ifdef __cplusplus
121}
122#endif
123
124#endif /* BT_MESH_GEN_LVL_H__ */
125
const struct bt_mesh_model_transition * transition
Definition: gen_lvl.h:61
int32_t delta
Definition: gen_lvl.h:47
bool new_transaction
Definition: gen_lvl.h:53
Definition: gen_lvl.h:45
int16_t delta
Definition: gen_lvl.h:67
bool new_transaction
Definition: gen_lvl.h:69
const struct bt_mesh_model_transition * transition
Definition: gen_lvl.h:79
Definition: gen_lvl.h:65
bool new_transaction
Definition: gen_lvl.h:33
int16_t lvl
Definition: gen_lvl.h:31
const struct bt_mesh_model_transition * transition
Definition: gen_lvl.h:41
Definition: gen_lvl.h:29
int16_t current
Definition: gen_lvl.h:85
int32_t remaining_time
Definition: gen_lvl.h:96
int16_t target
Definition: gen_lvl.h:90
Definition: gen_lvl.h:83
Definition: model_types.h:37