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__
22 #include <zigbee_types.h>
25 * @brief Definition for mfglib control start structure.
29 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
30 char mfglib_start; /**< 1 - Start, 0 - Stop */
31 } ZigbeeMfglibControlStart_t;
34 * @brief Definition for structure.
38 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
39 } ZigbeeMfglibControlEnd_t;
42 * @brief Definition for mfglib control start tone structure.
46 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
47 } ZigbeeMfglibControlStartTone_t;
50 * @brief Definition for mfglib control stop tone structure.
54 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
55 } ZigbeeMfglibControlStopTone_t;
58 * @brief Definition for mfglib control start stream structure.
62 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
63 } ZigbeeMfglibControlStartStream_t;
66 * @brief Definition for mfglib control stop stream structure.
70 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
71 } ZigbeeMfglibControlStopStream_t;
74 * @brief Definition for mfglib control send packet structure.
78 char packet_content[ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN]; /**< Packet content */
79 int packet_length; /**< Packet length */
80 } ZigbeeMfglibControlSendPacket_t;
83 * @brief Definition for mfglib control set channel structure.
87 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
88 char channel; /**< Channel */
89 } ZigbeeMfglibControlSetChannel_t;
92 * @brief Definition for mfglib control get channel structure.
96 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
97 } ZigbeeMfglibControlGetChannel_t;
100 * @brief Definition for mfglib control set power structure.
104 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
105 short tx_power_mode; /**< TX power mode */
106 short power; /**< Power */
107 } ZigbeeMfglibControlSetPower_t;
110 * @brief Definition for mfglib control get power structure.
114 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
115 } ZigbeeMfglibControlGetPower_t;
118 * @brief Definition for mfglib control set syn offset structure.
122 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
123 char channel; /**< Test channel */
124 } ZigbeeMfglibControlSetSynOffset_t;
127 * @brief Definition for mfglib control get syn offset structure.
131 char packet[ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN]; /**< Packet */
132 int packet_length; /**< Packet length */
133 char link_quality; /**< Link quality */
134 char rssi; /**< RSSI */
135 } ZigbeeMfglibControlGetSynOffset_t;
138 * @brief Definition for mfglib control RX start structure.
142 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
143 } ZigbeeMfglibControlRxStart_t;
146 * @brief Definition for mfglib control RX stop structure.
150 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
151 } ZigbeeMfglibControlRxStop_t;
154 * @brief Definition for mfglib control RX verify structure.
158 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
159 } ZigbeeMfglibControlRxVerify_t;
162 * @brief Definition for mfglib control get rssi structure.
166 char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
167 } ZigbeeMfglibControlGetRssi_t;
169 #endif /* __ZIGBEE_MFGLIB_CONTROL_TYPE_H__ */