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_ZDODEV_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZDODEV_CONTROL_TYPE_H__
22 #include <zigbee_types.h>
25 * @brief Definition for Zdodev 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 Zdodev 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 Zdodev control IEEE address request structure.
52 short node_id; /**< Node ID */
53 } ZigbeeZdodevControlIeeeAddrReq_t;
56 * @brief Definition for Zdodev control active endpoint structure.
60 short node_id; /**< Node ID */
61 } ZigbeeZdodevControlActiveEpReq_t;
64 * @brief Definition for Zdodev control node descriptor request structure.
68 short node_id; /**< Node ID */
69 } ZigbeeZdodevControlNodeDescriptorReq_t;
72 * @brief Definition for Zdodev control power descriptor request structure.
76 short node_id; /**< Node ID */
77 } ZigbeeZdodevControlPowerDescriptorReq_t;
80 * @brief Definition for Zdodev control complex descriptor request structure.
84 short node_id; /**< Node ID */
85 } ZigbeeZdodevControlComplexDescriptorReq_t;
88 * @brief Definition for Zdodev control user descriptor request structure.
92 short node_id; /**< Node ID */
93 } ZigbeeZdodevControlUserDescriptorReq_t;
96 * @brief Definition for Zdodev 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 Zdodev 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 Zdodev control simple descriptor request structure.
121 short node_id; /**< Node ID */
122 char endpoint; /**< Endpoint */
123 } ZigbeeZdodevControlSimpleDescriptorReq_t;
126 * @brief Definition for Zdodev control management LQI request structure.
130 short node_id; /**< Node ID */
131 char start_index; /**< Start index */
132 } ZigbeeZdodevControlMgmtLqiReq_t;
135 * @brief Definition for Zdodev control management RTG request structure.
139 short node_id; /**< Node ID */
140 char start_index; /**< Start index */
141 } ZigbeeZdodevControlMgmtRtgReq_t;
144 * @brief Definition for Zdodev control management bind request structure.
148 short node_id; /**< Node ID */
149 char start_index; /**< Start index */
150 } ZigbeeZdodevControlMgmtBindReq_t;
153 * @brief Definition for Zdodev 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 Zdodev 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 Zdodev 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_ZDODEV_CONTROL_TYPE_H__ */