2 * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
4 * Contact: Suresh Kumar N (suresh.n@samsung.com)
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __ZIGBEE_ZCL_SCENE_TYPE_H__
20 #define __ZIGBEE_ZCL_SCENE_TYPE_H__
22 #include <zigbee_types.h>
24 /* -----------------------------------------------------------------------------
26 * ---------------------------------------------------------------------------*/
29 * @brief Definition for ZCL scene add scene structure.
33 unsigned short node_id; /**< Node ID */
34 unsigned char dest_ep; /**< Destination endpoint */
35 unsigned short group_id; /**< Group ID */
36 unsigned char scene_id; /**< Scene ID */
37 unsigned short transition_time; /**< Transition time */
38 char scene_name[ZIGBEE_ZCL_SCENE_NAME_MAX_LEN + 1]; /**< Scene name (NULL terminated */
39 unsigned short ext_field_set_len; /**< Extended field set length */
40 unsigned char *ext_field_set; /**< Extended field set */
41 } ZigbeeZclSceneAddScene_t;
44 * @brief Definition for ZCL scene view scene structure.
48 unsigned short node_id; /**< Node ID */
49 unsigned char dest_ep; /**< Destination endpoint */
50 unsigned short group_id; /**< Group ID */
51 unsigned char scene_id; /**< Scene ID */
52 } ZigbeeZclSceneViewScene_t;
55 * @brief Definition for ZCL scene remove scene structure.
59 unsigned short node_id; /**< Node ID */
60 unsigned char dest_ep; /**< Destination endpoint */
61 unsigned short group_id; /**< Group ID */
62 unsigned char scene_id; /**< Scene ID */
63 } ZigbeeZclSceneRemoveScene_t;
66 * @brief Definition for ZCL scene store scene structure.
70 unsigned short node_id; /**< Node ID */
71 unsigned char dest_ep; /**< Destination endpoint */
72 unsigned short group_id; /**< Group ID */
73 unsigned char scene_id; /**< Scene ID */
74 } ZigbeeZclSceneStoreScene_t;
77 * @brief Definition for ZCL scene recall scene structure.
81 unsigned short node_id; /**< Node ID */
82 unsigned char dest_ep; /**< Destination endpoint */
83 unsigned short group_id; /**< Group ID */
84 unsigned char scene_id; /**< Scene ID */
85 } ZigbeeZclSceneRecallScene_t;
88 * @brief Definition for ZCL scene remove all scene structure.
92 unsigned short node_id; /**< Node ID */
93 unsigned char dest_ep; /**< Destination endpoint */
94 unsigned short group_id; /**< Group ID */
95 } ZigbeeZclSceneRemoveAllScene_t;
98 * @brief Definition for ZCL scene get scene membership structure.
102 unsigned short node_id; /**< Node ID */
103 unsigned char dest_ep; /**< Destination endpoint */
104 unsigned short group_id; /**< Group ID */
105 } ZigbeeZclSceneGetSceneMembership_t;
107 /* -----------------------------------------------------------------------------
109 * ---------------------------------------------------------------------------*/
112 * @brief Definition for ZCL scene add scene response structure.
116 unsigned short node_id; /**< Node ID */
117 unsigned char src_ep; /**< Destination endpoint */
118 unsigned char status; /**< Status */
119 unsigned short group_id; /**< Group ID */
120 unsigned char scene_id; /**< Scene ID */
121 } ZigbeeZclSceneAddSceneResp_t;
124 * @brief Definition for ZCL scene view scene response structure.
128 unsigned short node_id; /**< Node ID */
129 unsigned char src_ep; /**< Source endpoint */
130 unsigned short group_id; /**< Group ID */
131 unsigned char status; /**< Status */
132 unsigned char scene_id; /**< Scene ID */
133 unsigned short transition_time; /**< Transition time */
134 char *scene_name; /**< Scene name (NULL terminated */
135 unsigned short ext_field_set_len; /**< Extended field set length */
136 unsigned char *ext_field_set; /**< Extended field set */
137 } ZigbeeZclSceneViewSceneResp_t;
140 * @brief Definition for ZCL scene remove scene response structure.
144 unsigned short node_id; /**< Node ID */
145 unsigned char src_ep; /**< Source endpoint */
146 unsigned char status; /**< Status */
147 unsigned short group_id; /**< Group ID */
148 unsigned char scene_id; /**< Scene ID */
149 } ZigbeeZclSceneRemoveSceneResp_t;
152 * @brief Definition for ZCL scene remove all scene response structure.
156 unsigned short node_id; /**< Node ID */
157 unsigned char src_ep; /**< Source endpoint */
158 unsigned char status; /**< Status */
159 unsigned short group_id; /**< Group ID */
160 } ZigbeeZclSceneRemoveAllSceneResp_t;
163 * @brief Definition for ZCL scene store scene response structure.
167 unsigned short node_id; /**< Node ID */
168 unsigned char src_ep; /**< Source endpoint */
169 unsigned char status; /**< Status */
170 unsigned short group_id; /**< Group ID */
171 unsigned char scene_id; /**< Scene ID */
172 } ZigbeeZclSceneStoreSceneResp_t;
175 * @brief Definition for ZCL scene get scene membership response structure.
179 unsigned short node_id; /**< Node ID */
180 unsigned char src_ep; /**< Source endpoint */
181 unsigned char status; /**< Status */
182 unsigned char capacity; /**< Capacity */
183 unsigned short group_id; /**< Group ID */
184 unsigned char scene_count; /**< Scene count */
185 unsigned char *scene_list; /**< Scene list */
186 } ZigbeeZclSceneGetSceneMembershipResp_t;
189 #endif /* __ZIGBEE_ZCL_SCENE_TYPE_H__ */