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_CUSTOM_TYPE_H__
20 #define __ZIGBEE_CUSTOM_TYPE_H__
22 #include <zigbee_types.h>
24 /* --------------------------------------------------------------------------------------
26 * -------------------------------------------------------------------------------------*/
29 * @brief Definition for APS send structure.
33 unsigned short node_id;
34 unsigned char aps_frame_ctrl;
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;
42 unsigned short payload_len;
43 unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
44 } ZigbeeCustomApsSend_t;
47 * @brief Definition for ZCL send structure.
51 unsigned short node_id;
53 unsigned char dest_ep;
54 unsigned short cluster_id;
55 unsigned char zcl_frame_ctrl;
57 unsigned short payload_len;
58 unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
59 } ZigbeeCustomZclSend_t;
62 * @brief Definition for send to local structure.
66 unsigned short length;
67 unsigned char data[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
68 } ZigbeeCustomSendToLocal_t;
70 /* --------------------------------------------------------------------------------------
72 * -------------------------------------------------------------------------------------*/
75 * @brief Definition for send to APS send response structure.
79 unsigned short node_id;
81 unsigned char dest_ep;
82 unsigned short cluster_id;
83 unsigned short profile_id;
85 unsigned short payload_len;
86 unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
87 } ZigbeeCustomApsSendNoti_t;
90 * @brief Definition for send to ZCL send response structure.
94 unsigned short node_id;
96 unsigned char dest_ep;
97 unsigned short cluster_id;
98 unsigned short profile_id;
100 unsigned short payload_len;
101 unsigned char payload[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
102 } ZigbeeCustomZclSendNoti_t;
105 * @brief Definition for send to local response structure.
109 unsigned short length;
110 unsigned char data[ZIGBEE_CUSTOM_SEND_PAYLOAD_LEN];
111 } ZigbeeCustomSendToLocalNoti_t;
113 #endif /* __ZIGBEE_CUSTOM_TYPE_H__ */