Rename type definiton file to following Zigbee specification
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_global_control_type.h
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Contact: Suresh Kumar N (suresh.n@samsung.com)
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  */
18
19 #ifndef __ZIGBEE_ZCL_GLOBAL_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCL_GLOBAL_CONTROL_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /**
25  * @brief Definition for ZCL Global control read attributes request structure.
26  * @since_tizen 3.0
27  */
28 typedef struct {
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;
36
37 /**
38  * @brief Definition for ZCL Global control write attributes request structure.
39  * @since_tizen 3.0
40  */
41 typedef struct {
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;
50
51 /**
52  * @brief Definition for ZCL Global control write attributes undivided request structure.
53  * @since_tizen 3.0
54  */
55 typedef struct {
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;
64
65 /**
66  * @brief Definition for ZCL Global control write attributes no response structure.
67  * @since_tizen 3.0
68  */
69 typedef struct {
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;
78
79 /**
80  * @brief Definition for ZCL Global control write attributes structured structure.
81  * @since_tizen 3.0
82  */
83 typedef struct {
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;
92
93 /**
94  * @brief Definition forZCL Global control read attributes structured  structure.
95  * @since_tizen 3.0
96  */
97 typedef struct {
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;
106
107 /**
108  * @brief Definition for ZCL Global control configure reporting request structure.
109  * @since_tizen 3.0
110  */
111 typedef struct {
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;
120
121 /**
122  * @brief Definition for ZCL Global control read configure reporting structure.
123  * @since_tizen 3.0
124  */
125 typedef struct {
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;
134
135 /**
136  * @brief Definition for ZCL Global control discover attributes structure.
137  * @since_tizen 3.0
138  */
139 typedef struct {
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;
147
148 /**
149  * @brief Definition for ZCL Global control discover attributes extended structure.
150  * @since_tizen 3.0
151  */
152 typedef struct {
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;
160
161 /**
162  * @brief Definition for ZCL Global control discover commands received structure.
163  * @since_tizen 3.0
164  */
165 typedef struct {
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;
173
174 /**
175  * @brief Definition for ZCL Global control discover commands generated structure.
176  * @since_tizen 3.0
177  */
178 typedef struct {
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;
186
187
188 #endif /* __ZIGBEE_ZCL_GLOBAL_CONTROL_TYPE_H__ */