Chagne DBus object name following Zigbee Specification
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zdo_dev_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_ZDO_DEV_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZDO_DEV_CONTROL_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /**
25  * @brief Definition for ZDO Dev control network address request structure.
26  * @since_tizen 3.0
27  */
28 typedef struct {
29         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
30         char request_type; /**< Request type */
31         char start_index; /**< Start index */
32 } ZigbeeZdoDevControlNwkAddrReq_t;
33
34 /**
35  * @brief Definition for ZDO Dev control matched descriptor request structure.
36  * @since_tizen 3.0
37  */
38 typedef struct {
39         short node_id; /**< Node ID */
40         short profile_id; /**< Profile ID */
41         char num_in_cl; /**< Number of int CL */
42         char *in_cl; /**< In CL */
43         char num_out_cl; /**< Number of out CL */
44         char *out_cl; /**< Out CL */
45 } ZigbeeZdoDevControlMatchedDescriptorReq_t;
46
47 /**
48  * @brief Definition for ZDO Dev control IEEE address request structure.
49  * @since_tizen 3.0
50  */
51 typedef struct {
52         short node_id; /**< Node ID */
53 } ZigbeeZdoDevControlIeeeAddrReq_t;
54
55 /**
56  * @brief Definition for ZDO Dev control active endpoint structure.
57  * @since_tizen 3.0
58  */
59 typedef struct {
60         short node_id; /**< Node ID */
61 } ZigbeeZdoDevControlActiveEpReq_t;
62
63 /**
64  * @brief Definition for ZDO Dev control node descriptor request structure.
65  * @since_tizen 3.0
66  */
67 typedef struct {
68         short node_id; /**< Node ID */
69 } ZigbeeZdoDevControlNodeDescriptorReq_t;
70
71 /**
72  * @brief Definition for ZDO Dev control power descriptor request structure.
73  * @since_tizen 3.0
74  */
75 typedef struct {
76         short node_id; /**< Node ID */
77 } ZigbeeZdoDevControlPowerDescriptorReq_t;
78
79 /**
80  * @brief Definition for ZDO Dev control complex descriptor request structure.
81  * @since_tizen 3.0
82  */
83 typedef struct {
84         short node_id; /**< Node ID */
85 } ZigbeeZdoDevControlComplexDescriptorReq_t;
86
87 /**
88  * @brief Definition for ZDO Dev control user descriptor request structure.
89  * @since_tizen 3.0
90  */
91 typedef struct {
92         short node_id; /**< Node ID */
93 } ZigbeeZdoDevControlUserDescriptorReq_t;
94
95 /**
96  * @brief Definition for ZDO Dev control user descriptor set request structure.
97  * @since_tizen 3.0
98  */
99 typedef struct {
100         short node_id; /**< Node ID */
101         char user_descriptor_len; /**< User descriptor length */
102         char user_descriptor[ZIGBEE_ZDODEV_CONTROL_USER_DECRIPTOR_MAX_LEN];
103                 /**< User descriptor */
104 } ZigbeeZdoDevControlUserDescriptorSetReq_t;
105
106 /**
107  * @brief Definition for ZDO Dev control device announce structure.
108  * @since_tizen 3.0
109  */
110 typedef struct {
111         short node_id; /**< Node ID */
112         char mac_addr[ZIGBEE_EUI64_SIZE]; /**< MAC address */
113         char capability; /**< Capability */
114 } ZigbeeZdoDevControlDeviceAnnounce_t;
115
116 /**
117  * @brief Definition for ZDO Dev control simple descriptor request structure.
118  * @since_tizen 3.0
119  */
120 typedef struct {
121         short node_id; /**< Node ID */
122         char endpoint; /**< Endpoint */
123 } ZigbeeZdoDevControlSimpleDescriptorReq_t;
124
125 /**
126  * @brief Definition for ZDO Dev control management LQI request structure.
127  * @since_tizen 3.0
128  */
129 typedef struct {
130         short node_id; /**< Node ID */
131         char start_index; /**< Start index */
132 } ZigbeeZdoDevControlMgmtLqiReq_t;
133
134 /**
135  * @brief Definition for ZDO Dev control management RTG request structure.
136  * @since_tizen 3.0
137  */
138 typedef struct {
139         short node_id; /**< Node ID */
140         char start_index; /**< Start index */
141 } ZigbeeZdoDevControlMgmtRtgReq_t;
142
143 /**
144  * @brief Definition for ZDO Dev control management bind request structure.
145  * @since_tizen 3.0
146  */
147 typedef struct {
148         short node_id; /**< Node ID */
149         char start_index; /**< Start index */
150 } ZigbeeZdoDevControlMgmtBindReq_t;
151
152 /**
153  * @brief Definition for ZDO Dev control management permit join request structure.
154  * @since_tizen 3.0
155  */
156 typedef struct {
157         short addr; /**< Address */
158         char duration; /**< Duration */
159         char tc_significance; /**< TC significance */
160 } ZigbeeZdoDevControlMgmtPermitJoinReq_t;
161
162 /**
163  * @brief Definition for ZDO Dev control network update request structure.
164  * @since_tizen 3.0
165  */
166 typedef struct {
167         short node_id; /**< Node ID */
168         unsigned int scan_channel; /**< Scan channel */
169         char scan_duration; /**< Scan duration */
170         char scan_count; /**< Scan count */
171         char network_update_id; /**< Network update ID */
172 } ZigbeeZdoDevControlNwkUpdateReq_t;
173
174 /**
175  * @brief Definition for ZDO Dev control network descriptor request structure.
176  * @since_tizen 3.0
177  */
178 typedef struct {
179         short node_id; /**< Node ID */
180         unsigned int scan_channel; /**< Scan channel */
181         char scan_duration; /**< Scan duration */
182         short scan_count; /**< Scan count */
183         char start_index; /**< Start index */
184 } ZigbeeZdoDevControlNwkDescriptorReq_t;
185
186 #endif /* __ZIGBEE_ZDO_DEV_CONTROL_TYPE_H__ */