nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
scene.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_SCENE_H__
15#define BT_MESH_SCENE_H__
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
24#define BT_MESH_SCENE_NONE 0x0000
25
34};
35
41 uint16_t current;
45 uint16_t target;
48};
49
51#define BT_MESH_SCENE_OP_GET BT_MESH_MODEL_OP_2(0x82, 0x41)
52#define BT_MESH_SCENE_OP_RECALL BT_MESH_MODEL_OP_2(0x82, 0x42)
53#define BT_MESH_SCENE_OP_RECALL_UNACK BT_MESH_MODEL_OP_2(0x82, 0x43)
54#define BT_MESH_SCENE_OP_STATUS BT_MESH_MODEL_OP_1(0x5E)
55#define BT_MESH_SCENE_OP_REGISTER_GET BT_MESH_MODEL_OP_2(0x82, 0x44)
56#define BT_MESH_SCENE_OP_REGISTER_STATUS BT_MESH_MODEL_OP_2(0x82, 0x45)
57#define BT_MESH_SCENE_OP_STORE BT_MESH_MODEL_OP_2(0x82, 0x46)
58#define BT_MESH_SCENE_OP_STORE_UNACK BT_MESH_MODEL_OP_2(0x82, 0x47)
59#define BT_MESH_SCENE_OP_DELETE BT_MESH_MODEL_OP_2(0x82, 0x9E)
60#define BT_MESH_SCENE_OP_DELETE_UNACK BT_MESH_MODEL_OP_2(0x82, 0x9F)
61
62#define BT_MESH_SCENE_MSG_LEN_GET 0
63#define BT_MESH_SCENE_MSG_MINLEN_RECALL 3
64#define BT_MESH_SCENE_MSG_MAXLEN_RECALL 5
65#define BT_MESH_SCENE_MSG_MINLEN_STATUS 3
66#define BT_MESH_SCENE_MSG_MAXLEN_STATUS 6
67#define BT_MESH_SCENE_MSG_LEN_REGISTER_GET 0
68#define BT_MESH_SCENE_MSG_MINLEN_REGISTER_STATUS 3
69#define BT_MESH_SCENE_MSG_LEN_STORE 2
70#define BT_MESH_SCENE_MSG_LEN_DELETE 2
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* BT_MESH_SCENE_H__ */
78
bt_mesh_scene_status
Definition: scene.h:27
@ BT_MESH_SCENE_NOT_FOUND
Definition: scene.h:33
@ BT_MESH_SCENE_SUCCESS
Definition: scene.h:29
@ BT_MESH_SCENE_REGISTER_FULL
Definition: scene.h:31
enum bt_mesh_scene_status status
Definition: scene.h:39
uint16_t current
Definition: scene.h:41
uint32_t remaining_time
Definition: scene.h:47
uint16_t target
Definition: scene.h:45
Definition: scene.h:37