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_ZCL_ALARM_TYPE_H__
20 #define __ZIGBEE_ZCL_ALARM_TYPE_H__
22 #include <zigbee_types.h>
24 /* --------------------------------------------------------------------------------------
26 * -------------------------------------------------------------------------------------*/
29 * @brief Definition for ZCL Alarm get alarm count structure.
33 unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
34 char endpoint; /**< Endpoint */
35 } ZigbeeZclAlarmGetAlarmCount_t;
38 * @brief Definition for ZCL Alarm reset alarm structure.
42 short node_id; /**< Node ID */
43 char endpoint; /**< Endpoint */
44 char alarm_code; /**< Alarm code */
45 short cluster_id; /**< Cluster ID */
46 } ZigbeeZclAlarmResetAlarm_t;
49 * @brief Definition for ZCL Alarm reset all alarm structure.
53 short node_id; /**< Node ID */
54 char endpoint; /**< Endpoint */
55 } ZigbeeZclAlarmResetAllAlarm_t;
58 * @brief Definition for ZCL Alarm alarm structure.
62 unsigned char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
63 char endpoint; /**< Endpoint */
64 char alarm_code; /**< Alarm code */
65 short cluster_id; /**< Cluster ID */
66 } ZigbeeZclAlarmAlarm_t;
69 * @brief Definition for ZCL Alarm reset all alarm logs structure.
73 short node_id; /**< Node ID */
74 char endpoint; /**< Endpoint */
75 } ZigbeeZclAlarmResetAlarmLogs_t;
78 * @brief Definition for ZCL Alarm get alarm structure.
82 short node_id; /**< Node ID */
83 char endpoint; /**< Endpoint */
84 } ZigbeeZclAlarmGetAlarm_t;
86 /* --------------------------------------------------------------------------------------
88 * -------------------------------------------------------------------------------------*/
91 * @brief Definition for ZCL Alarm get alarm count response structure.
95 int result; /**< Result */
96 unsigned char status; /**< Status */
97 } ZigbeeZclAlarmGetAlarmCountResp_t;
99 /* --------------------------------------------------------------------------------------
101 * -------------------------------------------------------------------------------------*/
103 * @brief Definition for ZCL Alarm notification structure.
107 short node_id; /**< Node ID */
108 char endpoint; /**< Endpoint */
109 char status; /**< Status */
110 char alarm_code; /**< Alarm code */
111 short clusterid; /**< Cluster ID */
112 int timestamp; /**< Time stamp */
113 } ZigbeeZclAlarmGetAlarmRsp_t;
115 #endif /* __ZIGBEE_ZCL_ALARM_TYPE_H__ */