nRF Connect SDK API 0.1.0
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
14#ifndef BT_MESH_LIGHTNESS_H__
15#define BT_MESH_LIGHTNESS_H__
16
17#include <zephyr/bluetooth/mesh.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25#define BT_MESH_LIGHTNESS_MIN 0
27#define BT_MESH_LIGHTNESS_MAX UINT16_MAX
28
32 uint16_t lvl;
41};
42
46 uint16_t current;
48 uint16_t target;
55};
56
59 uint16_t min;
60 uint16_t max;
61};
62
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
106#ifdef __cplusplus
107}
108#endif
109
110#endif /* BT_MESH_LIGHTNESS_H__ */
111
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