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_ZDO_DEV_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZDO_DEV_CONTROL_TYPE_H__
22 #include <zigbee_types.h>
25 * @brief Definition for ZDO Dev control network address request structure.
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;
35 * @brief Definition for ZDO Dev control matched descriptor request structure.
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;
48 * @brief Definition for ZDO Dev control IEEE address request structure.
52 short node_id; /**< Node ID */
53 } ZigbeeZdoDevControlIeeeAddrReq_t;
56 * @brief Definition for ZDO Dev control active endpoint structure.
60 short node_id; /**< Node ID */
61 } ZigbeeZdoDevControlActiveEpReq_t;
64 * @brief Definition for ZDO Dev control node descriptor request structure.
68 short node_id; /**< Node ID */
69 } ZigbeeZdoDevControlNodeDescriptorReq_t;
72 * @brief Definition for ZDO Dev control power descriptor request structure.
76 short node_id; /**< Node ID */
77 } ZigbeeZdoDevControlPowerDescriptorReq_t;
80 * @brief Definition for ZDO Dev control complex descriptor request structure.
84 short node_id; /**< Node ID */
85 } ZigbeeZdoDevControlComplexDescriptorReq_t;
88 * @brief Definition for ZDO Dev control user descriptor request structure.
92 short node_id; /**< Node ID */
93 } ZigbeeZdoDevControlUserDescriptorReq_t;
96 * @brief Definition for ZDO Dev control user descriptor set request structure.
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;
107 * @brief Definition for ZDO Dev control device announce structure.
111 short node_id; /**< Node ID */
112 char mac_addr[ZIGBEE_EUI64_SIZE]; /**< MAC address */
113 char capability; /**< Capability */
114 } ZigbeeZdoDevControlDeviceAnnounce_t;
117 * @brief Definition for ZDO Dev control simple descriptor request structure.
121 short node_id; /**< Node ID */
122 char endpoint; /**< Endpoint */
123 } ZigbeeZdoDevControlSimpleDescriptorReq_t;
126 * @brief Definition for ZDO Dev control management LQI request structure.
130 short node_id; /**< Node ID */
131 char start_index; /**< Start index */
132 } ZigbeeZdoDevControlMgmtLqiReq_t;
135 * @brief Definition for ZDO Dev control management RTG request structure.
139 short node_id; /**< Node ID */
140 char start_index; /**< Start index */
141 } ZigbeeZdoDevControlMgmtRtgReq_t;
144 * @brief Definition for ZDO Dev control management bind request structure.
148 short node_id; /**< Node ID */
149 char start_index; /**< Start index */
150 } ZigbeeZdoDevControlMgmtBindReq_t;
153 * @brief Definition for ZDO Dev control management permit join request structure.
157 short addr; /**< Address */
158 char duration; /**< Duration */
159 char tc_significance; /**< TC significance */
160 } ZigbeeZdoDevControlMgmtPermitJoinReq_t;
163 * @brief Definition for ZDO Dev control network update request structure.
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;
175 * @brief Definition for ZDO Dev control network descriptor request structure.
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;
186 #endif /* __ZIGBEE_ZDO_DEV_CONTROL_TYPE_H__ */