Remove warning related signedness
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_custom_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_CUSTOM_TYPE_H__
20 #define __ZIGBEE_CUSTOM_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /* --------------------------------------------------------------------------------------
25  * For Request
26  * -------------------------------------------------------------------------------------*/
27
28 /**
29  * @brief Definition for APS send structure.
30  * @since_tizen 3.0
31  */
32 typedef struct {
33         unsigned short node_id;
34         unsigned char aps_frame_ctrl;
35         unsigned char src_ep;
36         unsigned char dest_ep;
37         unsigned short cluster_id;
38         unsigned short profile_id;
39         unsigned char zcl_frame_ctrl;
40         unsigned short mfg_code;
41         unsigned char cmd_id;
42         unsigned short payload_len;
43         unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
44 } ZigbeeCustomApsSend_t;
45
46 /**
47  * @brief Definition for ZCL send structure.
48  * @since_tizen 3.0
49  */
50 typedef struct {
51         unsigned short node_id;
52         unsigned char src_ep;
53         unsigned char dest_ep;
54         unsigned short cluster_id;
55         unsigned char zcl_frame_ctrl;
56         unsigned char cmd_id;
57         unsigned short payload_len;
58         unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
59 } ZigbeeCustomZclSend_t;
60
61 /**
62  * @brief Definition for send to local structure.
63  * @since_tizen 3.0
64  */
65 typedef struct {
66         unsigned short length;
67         unsigned char data[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
68 } ZigbeeCustomSendToLocal_t;
69
70 /* --------------------------------------------------------------------------------------
71  * For Notifications
72  * -------------------------------------------------------------------------------------*/
73
74 /**
75  * @brief Definition for send to APS send response structure.
76  * @since_tizen 3.0
77  */
78 typedef struct {
79         unsigned short node_id;
80         unsigned char src_ep;
81         unsigned char dest_ep;
82         unsigned short cluster_id;
83         unsigned short profile_id;
84         unsigned char cmd_id;
85         unsigned short payload_len;
86         unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
87 } ZigbeeCustomApsSendNoti_t;
88
89 /**
90  * @brief Definition for send to ZCL send response structure.
91  * @since_tizen 3.0
92  */
93 typedef struct {
94         unsigned short node_id;
95         unsigned char src_ep;
96         unsigned char dest_ep;
97         unsigned short cluster_id;
98         unsigned short profile_id;
99         unsigned char cmd_id;
100         unsigned short payload_len;
101         unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
102 } ZigbeeCustomZclSendNoti_t;
103
104 /**
105  * @brief Definition for send to local response structure.
106  * @since_tizen 3.0
107  */
108 typedef struct {
109         unsigned short length;
110         unsigned char data[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
111 } ZigbeeCustomSendToLocalNoti_t;
112
113 #endif /* __ZIGBEE_CUSTOM_TYPE_H__ */