nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
light_xyl.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
14#ifndef BT_MESH_LIGHT_XYL_H__
15#define BT_MESH_LIGHT_XYL_H__
16
17#include <zephyr/bluetooth/mesh.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
27 uint16_t x;
29 uint16_t y;
30};
31
35 uint16_t lightness;
38};
39
52};
53
62};
63
70};
71
78};
79
86};
87
90#define BT_MESH_LIGHT_XYL_OP_GET BT_MESH_MODEL_OP_2(0x82, 0x83)
91#define BT_MESH_LIGHT_XYL_OP_SET BT_MESH_MODEL_OP_2(0x82, 0x84)
92#define BT_MESH_LIGHT_XYL_OP_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x85)
93#define BT_MESH_LIGHT_XYL_OP_STATUS BT_MESH_MODEL_OP_2(0x82, 0x86)
94#define BT_MESH_LIGHT_XYL_OP_TARGET_GET BT_MESH_MODEL_OP_2(0x82, 0x87)
95#define BT_MESH_LIGHT_XYL_OP_TARGET_STATUS BT_MESH_MODEL_OP_2(0x82, 0x88)
96#define BT_MESH_LIGHT_XYL_OP_DEFAULT_GET BT_MESH_MODEL_OP_2(0x82, 0x89)
97#define BT_MESH_LIGHT_XYL_OP_DEFAULT_STATUS BT_MESH_MODEL_OP_2(0x82, 0x8A)
98#define BT_MESH_LIGHT_XYL_OP_RANGE_GET BT_MESH_MODEL_OP_2(0x82, 0x8B)
99#define BT_MESH_LIGHT_XYL_OP_RANGE_STATUS BT_MESH_MODEL_OP_2(0x82, 0x8C)
100#define BT_MESH_LIGHT_XYL_OP_DEFAULT_SET BT_MESH_MODEL_OP_2(0x82, 0x8D)
101#define BT_MESH_LIGHT_XYL_OP_DEFAULT_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x8E)
102#define BT_MESH_LIGHT_XYL_OP_RANGE_SET BT_MESH_MODEL_OP_2(0x82, 0x8F)
103#define BT_MESH_LIGHT_XYL_OP_RANGE_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x90)
104
105#define BT_MESH_LIGHT_XYL_MSG_LEN_GET 0
106#define BT_MESH_LIGHT_XYL_MSG_LEN_DEFAULT 6
107#define BT_MESH_LIGHT_XYL_MSG_LEN_RANGE_SET 8
108#define BT_MESH_LIGHT_XYL_MSG_LEN_RANGE_STATUS 9
109#define BT_MESH_LIGHT_XYL_MSG_MINLEN_STATUS 6
110#define BT_MESH_LIGHT_XYL_MSG_MAXLEN_STATUS 7
111#define BT_MESH_LIGHT_XYL_MSG_MINLEN_SET 7
112#define BT_MESH_LIGHT_XYL_MSG_MAXLEN_SET 9
113
116#ifdef __cplusplus
117}
118#endif
119
120#endif /* BT_MESH_LIGHT_XYL_H__ */
121
bt_mesh_model_status
Definition: model_types.h:54
struct bt_mesh_light_xy max
Definition: light_xyl.h:77
struct bt_mesh_light_xy min
Definition: light_xyl.h:75
Definition: light_xyl.h:73
uint16_t y
Definition: light_xyl.h:29
uint16_t x
Definition: light_xyl.h:27
Definition: light_xyl.h:25
struct bt_mesh_light_xy_range range
Definition: light_xyl.h:85
enum bt_mesh_model_status status_code
Definition: light_xyl.h:83
Definition: light_xyl.h:81
struct bt_mesh_light_xyl target
Definition: light_xyl.h:59
int32_t remaining_time
Definition: light_xyl.h:61
struct bt_mesh_light_xyl current
Definition: light_xyl.h:57
Definition: light_xyl.h:55
struct bt_mesh_model_transition * transition
Definition: light_xyl.h:51
struct bt_mesh_light_xyl params
Definition: light_xyl.h:43
Definition: light_xyl.h:41
int32_t remaining_time
Definition: light_xyl.h:69
struct bt_mesh_light_xyl params
Definition: light_xyl.h:67
Definition: light_xyl.h:65
struct bt_mesh_light_xy xy
Definition: light_xyl.h:37
uint16_t lightness
Definition: light_xyl.h:35
Definition: light_xyl.h:33
Definition: model_types.h:37