Rename type definiton file to following Zigbee specification
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_alarm_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_ZCL_ALARM_TYPE_H__
20 #define __ZIGBEE_ZCL_ALARM_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /**
25  * @brief Definition for ZCL Alarm get alarm count structure.
26  * @since_tizen 3.0
27  */
28 typedef struct {
29         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
30         char endpoint; /**< Endpoint */
31 } ZigbeeZclAlarmGetAlarmCount_t;
32
33 /**
34  * @brief Definition for ZCL Alarm reset alarm structure.
35  * @since_tizen 3.0
36  */
37 typedef struct {
38         short node_id; /**< Node ID */
39         char endpoint; /**< Endpoint */
40         char alarm_code; /**< Alarm code */
41         short cluster_id; /**< Cluster ID */
42 } ZigbeeZclAlarmResetAlarm_t;
43
44 /**
45  * @brief Definition for ZCL Alarm reset all alarm structure.
46  * @since_tizen 3.0
47  */
48 typedef struct {
49         short node_id; /**< Node ID */
50         char endpoint; /**< Endpoint */
51 } ZigbeeZclAlarmResetAllAlarm_t;
52
53 /**
54  * @brief Definition for ZCL Alarm alarm structure.
55  * @since_tizen 3.0
56  */
57 typedef struct {
58         char eui64[ZIGBEE_EUI64_SIZE]; /**< EUI64 (an IEEE address) */
59         char endpoint; /**< Endpoint */
60         char alarm_code; /**< Alarm code */
61         short cluster_id; /**< Cluster ID */
62 } ZigbeeZclAlarmAlarm_t;
63
64 /**
65  * @brief Definition for ZCL Alarm reset all alarm logs structure.
66  * @since_tizen 3.0
67  */
68 typedef struct {
69         short node_id; /**< Node ID */
70         char endpoint; /**< Endpoint */
71 } ZigbeeZclAlarmResetAlarmLogs_t;
72
73 /**
74  * @brief Definition for ZCL Alarm get alarm structure.
75  * @since_tizen 3.0
76  */
77 typedef struct {
78         short node_id; /**< Node ID */
79         char endpoint; /**< Endpoint */
80 } ZigbeeZclAlarmGetAlarm_t;
81
82 #endif /* __ZIGBEE_ZCL_ALARM_TYPE_H__ */