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_GLOBAL_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCL_GLOBAL_CONTROL_TYPE_H__
22 #include <zigbee_types.h>
25 * @brief Definition for ZCL Global control read attributes request structure.
29 char *attribute_id; /**< Attribute ID */
30 int attribute_id_len; /**< Attribute ID length */
31 short node_id; /**< Node ID */
32 char cluster_id; /**< Cluster ID */
33 char zcl_frame_ctrl; /**< ZCL frame control */
34 char dest_ep; /**< Destination endpoint */
35 } ZigbeeZclGlobalControlReadAttributesRequest_t;
38 * @brief Definition for ZCL Global control write attributes request structure.
42 char *write_records; /**< Write records */
43 int records_len; /**< Records length */
44 short node_id; /**< Node ID */
45 char cluster_id; /**< Cluster ID */
46 char zcl_frame_ctrl; /**< ZCL frame control */
47 char src_ep; /**< Source endpoint */
48 char dest_ep; /**< Destination endpoint */
49 } ZigbeeZclGlobalControlWriteAttributesRequest_t;
52 * @brief Definition for ZCL Global control write attributes undivided request structure.
56 char *write_records; /**< Write records */
57 int records_len; /**< Records length */
58 short node_id; /**< Node ID */
59 char cluster_id; /**< Cluster ID */
60 char zcl_frame_ctrl; /**< ZCL frame control */
61 char src_ep; /**< Source endpoint */
62 char dest_ep; /**< Destination endpoint */
63 } ZigbeeZclGlobalControlWriteAttributesUndividedRequest_t;
66 * @brief Definition for ZCL Global control write attributes no response structure.
70 char *write_records; /**< Write records */
71 int records_len; /**< Records length */
72 short node_id; /**< Node ID */
73 char cluster_id; /**< Cluster ID */
74 char zcl_frame_ctrl; /**< ZCL frame control */
75 char src_ep; /**< Source endpoint */
76 char dest_ep; /**< Destination endpoint */
77 } ZigbeeZclGlobalControlWriteAttributesNoResponse_t;
80 * @brief Definition for ZCL Global control write attributes structured structure.
84 char *write_records; /**< Write records */
85 int records_len; /**< Records length */
86 short node_id; /**< Node ID */
87 char cluster_id; /**< Cluster ID */
88 char zcl_frame_ctrl; /**< ZCL frame control */
89 char src_ep; /**< Source endpoint */
90 char dest_ep; /**< Destination endpoint */
91 } ZigbeeZclGlobalControlWriteAttributesStructed_t;
94 * @brief Definition forZCL Global control read attributes structured structure.
98 char *read_records; /**< Read records */
99 int records_len; /**< Records length */
100 short node_id; /**< Node ID */
101 char cluster_id; /**< Cluster ID */
102 char zcl_frame_ctrl; /**< ZCL frame control */
103 char src_ep; /**< Source endpoint */
104 char dest_ep; /**< Destination endpoint */
105 } ZigbeeZclGlobalControlReadAttributesStructed_t;
108 * @brief Definition for ZCL Global control configure reporting request structure.
112 char *read_records; /**< Read records */
113 int records_len; /**< Records length */
114 short node_id; /**< Node ID */
115 char cluster_id; /**< Cluster ID */
116 char zcl_frame_ctrl; /**< ZCL frame control */
117 char src_ep; /**< Source endpoint */
118 char dest_ep; /**< Destination endpoint */
119 } ZigbeeZclGlobalControlConfigureReportingReq_t;
122 * @brief Definition for ZCL Global control read configure reporting structure.
126 char *read_records; /**< Read records */
127 int records_len; /**< Records length */
128 short node_id; /**< Node ID */
129 char cluster_id; /**< Cluster ID */
130 char zcl_frame_ctrl; /**< ZCL frame control */
131 char src_ep; /**< Source endpoint */
132 char dest_ep; /**< Destination endpoint */
133 } ZigbeeZclGlobalControlReadConfigureReporting_t;
136 * @brief Definition for ZCL Global control discover attributes structure.
140 short node_id; /**< Node ID */
141 char dest_ep; /**< Destination endpoint */
142 char zcl_frame_ctrl; /**< ZCL frame control */
143 char cluster_id; /**< Cluster ID */
144 char start_attribute; /**< Start attribute */
145 char max; /**< Maximum */
146 } ZigbeeZclGlobalControlDiscoverAttributes_t;
149 * @brief Definition for ZCL Global control discover attributes extended structure.
153 short node_id; /**< Node ID */
154 char dest_ep; /**< Destination endpoint */
155 char zcl_frame_ctrl; /**< ZCL frame control */
156 char cluster_id; /**< Cluster ID */
157 char start_attribute; /**< Start attribute */
158 char max; /**< Maximum */
159 } ZigbeeZclGlobalControlDiscoverAttributesExtended_t;
162 * @brief Definition for ZCL Global control discover commands received structure.
166 short node_id; /**< Node ID */
167 char dest_ep; /**< Destination endpoint */
168 char zcl_frame_ctrl; /**< ZCL frame control */
169 char cluster_id; /**< Cluster ID */
170 char start_attribute; /**< Start attribute */
171 char max; /**< Maximum */
172 } ZigbeeZclGlobalControlDiscoverCommandsReceived_t;
175 * @brief Definition for ZCL Global control discover commands generated structure.
179 short node_id; /**< Node ID */
180 char dest_ep; /**< Destination endpoint */
181 char zcl_frame_ctrl; /**< ZCL frame control */
182 char cluster_id; /**< Cluster ID */
183 char start_attribute; /**< Start attribute */
184 char max; /**< Maximum */
185 } ZigbeeZclGlobalControlDiscoverCommandsGenerated_t;
188 #endif /* __ZIGBEE_ZCL_GLOBAL_CONTROL_TYPE_H__ */