17734308a1461d334f2e53ad383d0f4be2620d13
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zclglobal_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_ZCLGLOBAL_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCLGLOBAL_CONTROL_TYPE_H__
21
22 /**
23  * @brief Definition for Zclglobal control read attributes request structure.
24  * @since_tizen 3.0
25  */
26 typedef struct {
27         char *attribute_id; /**< Atttribute ID */
28         int attribute_id_len; /**< Atttribute ID length */
29         short node_id; /**< Node ID */
30         char cluster_id; /**< Cluster ID */
31         char zcl_frame_ctrl; /**< ZCL frame control */
32         char dest_ep; /**< Destination endpoint */
33 } ZigbeeZclglobalControlReadAttributesRequest_t;
34
35 /**
36  * @brief Definition for Zclglobal control write attributes request structure.
37  * @since_tizen 3.0
38  */
39 typedef struct {
40         char *write_records; /**< Write records */
41         int records_len; /**< Records length */
42         short node_id; /**< Node ID */
43         char cluster_id; /**< Cluster ID */
44         char zcl_frame_ctrl; /**< ZCL frame control */
45         char src_ep; /**< Source endpoint */
46         char dest_ep; /**< Destination endpoint */
47 } ZigbeeZclglobalControlWriteAttributesRequest_t;
48
49 /**
50  * @brief Definition for Zclglobal control write attributes undividied request structure.
51  * @since_tizen 3.0
52  */
53 typedef struct {
54         char *write_records; /**< Write records */
55         int records_len; /**< Records length */
56         short node_id; /**< Node ID */
57         char cluster_id; /**< Cluster ID */
58         char zcl_frame_ctrl; /**< ZCL frame control */
59         char src_ep; /**< Source endpoint */
60         char dest_ep; /**< Destination endpoint */
61 } ZigbeeZclglobalControlWriteAttributesUndividedRequest_t;
62
63 /**
64  * @brief Definition for Zclglobal control write attributes no response structure.
65  * @since_tizen 3.0
66  */
67 typedef struct {
68         char *write_records; /**< Write records */
69         int records_len; /**< Records length */
70         short node_id; /**< Node ID */
71         char cluster_id; /**< Cluster ID */
72         char zcl_frame_ctrl; /**< ZCL frame control */
73         char src_ep; /**< Source endpoint */
74         char dest_ep; /**< Destination endpoint */
75 } ZigbeeZclglobalControlWriteAttributesNoResponse_t;
76
77 /**
78  * @brief Definition for Zclglobal control write attritbutes structured structure.
79  * @since_tizen 3.0
80  */
81 typedef struct {
82         char *write_records; /**< Write records */
83         int records_len; /**< Records length */
84         short node_id; /**< Node ID */
85         char cluster_id; /**< Cluster ID */
86         char zcl_frame_ctrl; /**< ZCL frame control */
87         char src_ep; /**< Source endpoint */
88         char dest_ep; /**< Destination endpoint */
89 } ZigbeeZclglobalControlWriteAttributesStructed_t;
90
91 /**
92  * @brief Definition forZclglobal control read attributes structured  structure.
93  * @since_tizen 3.0
94  */
95 typedef struct {
96         char *read_records; /**< Read records */
97         int records_len; /**< Records length */
98         short node_id; /**< Node ID */
99         char cluster_id; /**< Cluster ID */
100         char zcl_frame_ctrl; /**< ZCL frame control */
101         char src_ep; /**< Source endpoint */
102         char dest_ep; /**< Destination endpoint */
103 } ZigbeeZclglobalControlReadAttributesStructed_t;
104
105 /**
106  * @brief Definition for Zclglobal control configure reporting request structure.
107  * @since_tizen 3.0
108  */
109 typedef struct {
110         char *read_records; /**< Read records */
111         int records_len; /**< Records length */
112         short node_id; /**< Node ID */
113         char cluster_id; /**< Cluster ID */
114         char zcl_frame_ctrl; /**< ZCL frame control */
115         char src_ep; /**< Source endpoint */
116         char dest_ep; /**< Destination endpoint */
117 } ZigbeeZclglobalControlConfigureReportingReq_t;
118
119 /**
120  * @brief Definition for Zclglobal control read configure reporting structure.
121  * @since_tizen 3.0
122  */
123 typedef struct {
124         char *read_records; /**< Read records */
125         int records_len; /**< Records length */
126         short node_id; /**< Node ID */
127         char cluster_id; /**< Cluster ID */
128         char zcl_frame_ctrl; /**< ZCL frame control */
129         char src_ep; /**< Source endpoint */
130         char dest_ep; /**< Destination endpoint */
131 } ZigbeeZclglobalControlReadConfigureReporting_t;
132
133 /**
134  * @brief Definition for Zclglobal control discover attributes structure.
135  * @since_tizen 3.0
136  */
137 typedef struct {
138         short node_id; /**< Node ID */
139         char dest_ep; /**< Destination endpoint */
140         char zcl_frame_ctrl; /**< ZCL frame control */
141         char cluster_id; /**< Cluster ID */
142         char start_attribute; /**< Start attribute */
143         char max; /**< Maximum */
144 } ZigbeeZclglobalControlDiscoverAttributes_t;
145
146 /**
147  * @brief Definition for Zclglobal control discover attributes extended structure.
148  * @since_tizen 3.0
149  */
150 typedef struct {
151         short node_id; /**< Node ID */
152         char dest_ep; /**< Destination endpoint */
153         char zcl_frame_ctrl; /**< ZCL frame control */
154         char cluster_id; /**< Cluster ID */
155         char start_attribute; /**< Start attribute */
156         char max; /**< Maximum */
157 } ZigbeeZclglobalControlDiscoverAttributesExtended_t;
158
159 /**
160  * @brief Definition for Zclglobal control discover commands received structure.
161  * @since_tizen 3.0
162  */
163 typedef struct {
164         short node_id; /**< Node ID */
165         char dest_ep; /**< Destination endpoint */
166         char zcl_frame_ctrl; /**< ZCL frame control */
167         char cluster_id; /**< Cluster ID */
168         char start_attribute; /**< Start attribute */
169         char max; /**< Maximum */
170 } ZigbeeZclglobalControlDiscoverCommandsReceived_t;
171
172 /**
173  * @brief Definition for Zclglobal control discover commands generated structure.
174  * @since_tizen 3.0
175  */
176 typedef struct {
177         short node_id; /**< Node ID */
178         char dest_ep; /**< Destination endpoint */
179         char zcl_frame_ctrl; /**< ZCL frame control */
180         char cluster_id; /**< Cluster ID */
181         char start_attribute; /**< Start attribute */
182         char max; /**< Maximum */
183 } ZigbeeZclglobalControlDiscoverCommandsGenerated_t;
184
185
186 #endif /* __ZIGBEE_ZCLGLOBAL_CONTROL_TYPE_H__ */