Base patch (skeleton code)
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_mfglib_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_MFGLIB_CONTROL_TYPE_H__
20 #define __ZIGBEE_MFGLIB_CONTROL_TYPE_H__
21
22 /**
23  * @brief Definition for size of EUI64 (an IEEE address) in bytes (8).
24  * @since_tizen 3.0
25  */
26 #define ZIGBEE_EUI64_SIZE 8
27
28 /**
29  * @brief Definition for size of mfglib control packet content (1024).
30  * @since_tizen 3.0
31  */
32 #define ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN 1024
33
34 /**
35  * @brief Definition for mfglib control start structure.
36  * @since_tizen 3.0
37  */
38 typedef struct {
39         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
40         char mfglib_start; /**< 1 - Start, 0 - Stop */
41 } ZigbeeMfglibControlStart_t;
42
43 /**
44  * @brief Definition for  structure.
45  * @since_tizen 3.0
46  */
47 typedef struct {
48         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
49 } ZigbeeMfglibControlEnd_t;
50
51 /**
52  * @brief Definition for mfglib control start tone structure.
53  * @since_tizen 3.0
54  */
55 typedef struct {
56         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
57 } ZigbeeMfglibControlStartTone_t;
58
59 /**
60  * @brief Definition for mfglib control stop tone structure.
61  * @since_tizen 3.0
62  */
63 typedef struct {
64         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
65 } ZigbeeMfglibControlStopTone_t;
66
67 /**
68  * @brief Definition for mfglib control start stream structure.
69  * @since_tizen 3.0
70  */
71 typedef struct {
72         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
73 } ZigbeeMfglibControlStartStream_t;
74
75 /**
76  * @brief Definition for mfglib control stop stream structure.
77  * @since_tizen 3.0
78  */
79 typedef struct {
80         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
81 } ZigbeeMfglibControlStopStream_t;
82
83 /**
84  * @brief Definition for mfglib control send packet structure.
85  * @since_tizen 3.0
86  */
87 typedef struct {
88         char packet_content[ZIGBEE_MFGLIB_CONTROL_PACKET_CONTENT_LEN]; /**< Packet content */
89         int packet_length; /**< Packet length */
90 } ZigbeeMfglibControlSendPacket_t;
91
92 /**
93  * @brief Definition for mfglib control set channel structure.
94  * @since_tizen 3.0
95  */
96 typedef struct {
97         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
98         char channel; /**< Channel */
99 } ZigbeeMfglibControlSetChannel_t;
100
101 /**
102  * @brief Definition for mfglib control get channel structure.
103  * @since_tizen 3.0
104  */
105 typedef struct {
106         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
107 } ZigbeeMfglibControlGetChannel_t;
108
109 /**
110  * @brief Definition for mfglib control set power structure.
111  * @since_tizen 3.0
112  */
113 typedef struct {
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;
118
119 /**
120  * @brief Definition for mfglib control get power structure.
121  * @since_tizen 3.0
122  */
123 typedef struct {
124         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
125 } ZigbeeMfglibControlGetPower_t;
126
127 /**
128  * @brief Definition for mfglib control set syn offset structure.
129  * @since_tizen 3.0
130  */
131 typedef struct {
132         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
133         char channel; /**< Test channel */
134 } ZigbeeMfglibControlSetSynOffset_t;
135
136 /**
137  * @brief Definition for mfglib control get syn offset structure.
138  * @since_tizen 3.0
139  */
140 typedef struct {
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;
146
147 /**
148  * @brief Definition for mfglib control RX start structure.
149  * @since_tizen 3.0
150  */
151 typedef struct {
152         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
153 } ZigbeeMfglibControlRxStart_t;
154
155 /**
156  * @brief Definition for mfglib control RX stop structure.
157  * @since_tizen 3.0
158  */
159 typedef struct {
160         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
161 } ZigbeeMfglibControlRxStop_t;
162
163 /**
164  * @brief Definition for mfglib control RX verify structure.
165  * @since_tizen 3.0
166  */
167 typedef struct {
168         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
169 } ZigbeeMfglibControlRxVerify_t;
170
171 /**
172  * @brief Definition for mfglib control get rssi structure.
173  * @since_tizen 3.0
174  */
175 typedef struct {
176         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
177 } ZigbeeMfglibControlGetRssi_t;
178
179 #endif /* __ZIGBEE_MFGLIB_CONTROL_TYPE_H__ */