1b569b1df61dd866a4a9198cb58147aeaa7bbfea
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_group_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_GROUP_TYPE_H__
20 #define __ZIGBEE_ZCL_GROUP_TYPE_H__
21
22 /**
23  * @brief Definition for maximum size of  Zcl group name (16).
24  * @since_tizen 3.0
25  */
26 #define ZIGBEE_ZCL_GROUP_NAME_MAX_LEN 16
27
28 /**
29  * @brief Definition for Zcl group add group structure.
30  * @since_tizen 3.0
31  */
32 typedef struct {
33         short node_id; /**< Node ID */
34         char dest_ep; /**< Destination endpoint */
35         short group_id; /**< Group ID */
36         char group_name[ZIGBEE_ZCL_GROUP_NAME_MAX_LEN + 1]; /**< Group name (NULL terminated) */
37 } ZigbeeZclGroupAddGroup_t;
38
39 /**
40  * @brief Definition for Zcl group view group structure.
41  * @since_tizen 3.0
42  */
43 typedef struct {
44         short node_id; /**< Node ID */
45         char dest_ep; /**< Destination endpoint */
46 } ZigbeeZclGroupViewGroup_t;
47
48 /**
49  * @brief Definition for Zcl group get group membership structure.
50  * @since_tizen 3.0
51  */
52 typedef struct {
53         short node_id; /**< Node ID */
54         char dest_ep; /**< Destination endpoint */
55         char group_count; /**< Group count */
56         short *group_list; /**< Group list */
57 } ZigbeeZclGroupGetGroupMembership_t;
58
59 /**
60  * @brief Definition for Zcl group remove group structure.
61  * @since_tizen 3.0
62  */
63 typedef struct {
64         short node_id; /**< Node ID */
65         char dest_ep; /**< Destination endpoint */
66         short group_id; /**< Group ID */
67 } ZigbeeZclGroupRemoveGroup_t;
68
69 /**
70  * @brief Definition for Zcl group remove all group structure.
71  * @since_tizen 3.0
72  */
73 typedef struct {
74         short node_id; /**< Node ID */
75         char dest_ep; /**< Destination endpoint */
76 } ZigbeeZclGroupRemoveAllGroup_t;
77
78 /**
79  * @brief Definition for Zcl group add group if identifying structure.
80  * @since_tizen 3.0
81  */
82 typedef struct {
83         short node_id; /**< Node ID */
84         char dest_ep; /**< Destination endpoint */
85         short group_id; /**< Group ID */
86         char group_name[ZIGBEE_ZCL_GROUP_NAME_MAX_LEN + 1]; /**< Group name (NULL terminated) */
87 } ZigbeeZclGroupAddGroupIfIdentifying_t;
88
89 #endif /* __ZIGBEE_ZCL_GROUP_TYPE_H__ */