nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
lightness.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
13
14
#ifndef BT_MESH_LIGHTNESS_H__
15
#define BT_MESH_LIGHTNESS_H__
16
17
#include <zephyr/bluetooth/mesh.h>
18
#include <
bluetooth/mesh/model_types.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
25
#define BT_MESH_LIGHTNESS_MIN 0
27
#define BT_MESH_LIGHTNESS_MAX UINT16_MAX
28
30
struct
bt_mesh_lightness_set
{
32
uint16_t
lvl
;
40
const
struct
bt_mesh_model_transition
*
transition
;
41
};
42
44
struct
bt_mesh_lightness_status
{
46
uint16_t
current
;
48
uint16_t
target
;
54
int32_t
remaining_time
;
55
};
56
58
struct
bt_mesh_lightness_range
{
59
uint16_t
min
;
60
uint16_t
max
;
61
};
62
64
struct
bt_mesh_lightness_range_status
{
66
enum
bt_mesh_model_status
status
;
68
struct
bt_mesh_lightness_range
range
;
69
};
70
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)
90
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
105
106
#ifdef __cplusplus
107
}
108
#endif
109
110
#endif
/* BT_MESH_LIGHTNESS_H__ */
111
bt_mesh_model_status
bt_mesh_model_status
Definition
model_types.h:54
model_types.h
bt_mesh_lightness_range_status::range
struct bt_mesh_lightness_range range
Definition
lightness.h:68
bt_mesh_lightness_range_status::status
enum bt_mesh_model_status status
Definition
lightness.h:66
bt_mesh_lightness_range_status
Definition
lightness.h:64
bt_mesh_lightness_range::max
uint16_t max
Definition
lightness.h:60
bt_mesh_lightness_range::min
uint16_t min
Definition
lightness.h:59
bt_mesh_lightness_range
Definition
lightness.h:58
bt_mesh_lightness_set::lvl
uint16_t lvl
Definition
lightness.h:32
bt_mesh_lightness_set::transition
const struct bt_mesh_model_transition * transition
Definition
lightness.h:40
bt_mesh_lightness_set
Definition
lightness.h:30
bt_mesh_lightness_status::current
uint16_t current
Definition
lightness.h:46
bt_mesh_lightness_status::target
uint16_t target
Definition
lightness.h:48
bt_mesh_lightness_status::remaining_time
int32_t remaining_time
Definition
lightness.h:54
bt_mesh_lightness_status
Definition
lightness.h:44
bt_mesh_model_transition
Definition
model_types.h:37
include
bluetooth
mesh
lightness.h
Generated on
for nRF Connect SDK API by
1.17.0