14#ifndef BT_MESH_LIGHTNESS_H__
15#define BT_MESH_LIGHTNESS_H__
17#include <zephyr/bluetooth/mesh.h>
25#define BT_MESH_LIGHTNESS_MIN 0
27#define BT_MESH_LIGHTNESS_MAX UINT16_MAX
72#define BT_MESH_LIGHTNESS_OP_GET BT_MESH_MODEL_OP_2(0x82, 0x4B)
73#define BT_MESH_LIGHTNESS_OP_SET BT_MESH_MODEL_OP_2(0x82, 0x4C)
74#define BT_MESH_LIGHTNESS_OP_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x4D)
75#define BT_MESH_LIGHTNESS_OP_STATUS BT_MESH_MODEL_OP_2(0x82, 0x4E)
76#define BT_MESH_LIGHTNESS_OP_LINEAR_GET BT_MESH_MODEL_OP_2(0x82, 0x4F)
77#define BT_MESH_LIGHTNESS_OP_LINEAR_SET BT_MESH_MODEL_OP_2(0x82, 0x50)
78#define BT_MESH_LIGHTNESS_OP_LINEAR_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x51)
79#define BT_MESH_LIGHTNESS_OP_LINEAR_STATUS BT_MESH_MODEL_OP_2(0x82, 0x52)
80#define BT_MESH_LIGHTNESS_OP_LAST_GET BT_MESH_MODEL_OP_2(0x82, 0x53)
81#define BT_MESH_LIGHTNESS_OP_LAST_STATUS BT_MESH_MODEL_OP_2(0x82, 0x54)
82#define BT_MESH_LIGHTNESS_OP_DEFAULT_GET BT_MESH_MODEL_OP_2(0x82, 0x55)
83#define BT_MESH_LIGHTNESS_OP_DEFAULT_STATUS BT_MESH_MODEL_OP_2(0x82, 0x56)
84#define BT_MESH_LIGHTNESS_OP_RANGE_GET BT_MESH_MODEL_OP_2(0x82, 0x57)
85#define BT_MESH_LIGHTNESS_OP_RANGE_STATUS BT_MESH_MODEL_OP_2(0x82, 0x58)
86#define BT_MESH_LIGHTNESS_OP_DEFAULT_SET BT_MESH_MODEL_OP_2(0x82, 0x59)
87#define BT_MESH_LIGHTNESS_OP_DEFAULT_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x5A)
88#define BT_MESH_LIGHTNESS_OP_RANGE_SET BT_MESH_MODEL_OP_2(0x82, 0x5B)
89#define BT_MESH_LIGHTNESS_OP_RANGE_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x5C)
91#define BT_MESH_LIGHTNESS_MSG_LEN_GET 0
92#define BT_MESH_LIGHTNESS_MSG_MINLEN_SET 3
93#define BT_MESH_LIGHTNESS_MSG_MAXLEN_SET 5
94#define BT_MESH_LIGHTNESS_MSG_MINLEN_STATUS 2
95#define BT_MESH_LIGHTNESS_MSG_MAXLEN_STATUS 5
96#define BT_MESH_LIGHTNESS_MSG_LEN_LAST_GET 0
97#define BT_MESH_LIGHTNESS_MSG_LEN_LAST_STATUS 2
98#define BT_MESH_LIGHTNESS_MSG_LEN_DEFAULT_GET 0
99#define BT_MESH_LIGHTNESS_MSG_LEN_DEFAULT_STATUS 2
100#define BT_MESH_LIGHTNESS_MSG_LEN_RANGE_GET 0
101#define BT_MESH_LIGHTNESS_MSG_LEN_RANGE_STATUS 5
102#define BT_MESH_LIGHTNESS_MSG_LEN_DEFAULT_SET 2
103#define BT_MESH_LIGHTNESS_MSG_LEN_RANGE_SET 4
bt_mesh_model_status
Definition: model_types.h:54
struct bt_mesh_lightness_range range
Definition: lightness.h:68
enum bt_mesh_model_status status
Definition: lightness.h:66
Definition: lightness.h:64
uint16_t max
Definition: lightness.h:60
uint16_t min
Definition: lightness.h:59
Definition: lightness.h:58
uint16_t lvl
Definition: lightness.h:32
const struct bt_mesh_model_transition * transition
Definition: lightness.h:40
Definition: lightness.h:30
uint16_t current
Definition: lightness.h:46
uint16_t target
Definition: lightness.h:48
int32_t remaining_time
Definition: lightness.h:54
Definition: lightness.h:44
Definition: model_types.h:37