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_MFGLIB_CONTROL_TYPE_H__
20 #define __ZIGBEE_MFGLIB_CONTROL_TYPE_H__
23 * @brief Definition for size of EUI64 (an IEEE address) in bytes (8).
26 #define ZIGBEE_EUI64_SIZE 8
29 * @brief Definition for size of mfglib control packet content (1024).
32 #define ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN 1024
35 * @brief Definition for mfglib control start structure.
39 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
40 char mfglib_start; /**< 1 - Start, 0 - Stop */
41 } ZigbeeMfglibControlStart_t;
44 * @brief Definition for structure.
48 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
49 } ZigbeeMfglibControlEnd_t;
52 * @brief Definition for mfglib control start tone structure.
56 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
57 } ZigbeeMfglibControlStartTone_t;
60 * @brief Definition for mfglib control stop tone structure.
64 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
65 } ZigbeeMfglibControlStopTone_t;
68 * @brief Definition for mfglib control start stream structure.
72 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
73 } ZigbeeMfglibControlStartStream_t;
76 * @brief Definition for mfglib control stop stream structure.
80 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
81 } ZigbeeMfglibControlStopStream_t;
84 * @brief Definition for mfglib control send packet structure.
88 char packet_content[ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN]; /**< Packet content */
89 int packet_length; /**< Packet length */
90 } ZigbeeMfglibControlSendPacket_t;
93 * @brief Definition for mfglib control set channel structure.
97 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
98 char channel; /**< Channel */
99 } ZigbeeMfglibControlSetChannel_t;
102 * @brief Definition for mfglib control get channel structure.
106 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
107 } ZigbeeMfglibControlGetChannel_t;
110 * @brief Definition for mfglib control set power structure.
114 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
115 short tx_power_mode; /**< TX power mode */
116 short power; /**< Power */
117 } ZigbeeMfglibControlSetPower_t;
120 * @brief Definition for mfglib control get power structure.
124 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
125 } ZigbeeMfglibControlGetPower_t;
128 * @brief Definition for mfglib control set syn offset structure.
132 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
133 char channel; /**< Test channel */
134 } ZigbeeMfglibControlSetSynOffset_t;
137 * @brief Definition for mfglib control get syn offset structure.
141 char packet[ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN]; /**< Packet */
142 int packet_length; /**< Packet length */
143 char link_quality; /**< Link quality */
144 char rssi; /**< RSSI */
145 } ZigbeeMfglibControlGetSynOffset_t;
148 * @brief Definition for mfglib control RX start structure.
152 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
153 } ZigbeeMfglibControlRxStart_t;
156 * @brief Definition for mfglib control RX stop structure.
160 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
161 } ZigbeeMfglibControlRxStop_t;
164 * @brief Definition for mfglib control RX verify structure.
168 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
169 } ZigbeeMfglibControlRxVerify_t;
172 * @brief Definition for mfglib control get rssi structure.
176 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
177 } ZigbeeMfglibControlGetRssi_t;
179 #endif /* __ZIGBEE_MFGLIB_CONTROL_TYPE_H__ */