d62e874b0d23bb21383ce863baecf1d4e0051463
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_level_control_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_LEVEL_CONTROL_TYPE_H__
20 #define __ZIGBEE_LEVEL_CONTROL_TYPE_H__
21
22 /**
23  * @brief Definition for level control move to level structure.
24  * @since_tizen 3.0
25  */
26 typedef struct {
27         short node_id; /**< Node ID */
28         char endpoint; /**< Endpoint */
29         char level; /**< Level */
30         short transition; /**< Transition time */
31 } ZigbeeLevelControlMoveToLevel_t;
32
33 /**
34  * @brief Definition for level control move structure.
35  * @since_tizen 3.0
36  */
37 typedef struct {
38         short node_id; /**< Node ID */
39         char endpoint; /**< Endpoint */
40         char move_mode; /**< Move mode */
41         char rate; /**< Rate of movement */
42 } ZigbeeLevelControlMove_t;
43
44 /**
45  * @brief Definition for level control step structure.
46  * @since_tizen 3.0
47  */
48 typedef struct {
49         short node_id; /**< Node ID */
50         char endpoint; /**< Endpoint */
51         char step_mode; /**< Step mode */
52         char move_mode; /**< Move mode */
53         short transition_time; /**< Transition time */
54 } ZigbeeLevelControlStep_t;
55
56 /**
57  * @brief Definition for level control move to level with on/off  structure.
58  * @since_tizen 3.0
59  */
60 typedef struct {
61         short node_id; /**< Node ID */
62         char endpoint; /**< Endpoint */
63         char level; /**< Level */
64         short transition; /**< Transition time */
65 } ZigbeeLevelControlMoveToLevelWithOnOff_t;
66
67 /**
68  * @brief Definition for level control move with on/off  structure.
69  * @since_tizen 3.0
70  */
71 typedef struct {
72         short node_id; /**< Node ID */
73         char endpoint; /**< Endpoint */
74         char move_mode; /**< Move mode */
75         char rate; /**< Rate of movement */
76 } ZigbeeLevelControlMoveOnOff_t;
77
78 /**
79  * @brief Definition for level control step with on/off structure.
80  * @since_tizen 3.0
81  */
82 typedef struct {
83         short node_id; /**< Node ID */
84         char endpoint; /**< Endpoint */
85         char step_mode; /**< Step mode */
86         char move_mode; /**< Move mode */
87         short transition_time; /**< Transition time */
88 } ZigbeeLevelControlStepWithOnOff_t;
89
90 /**
91  * @brief Definition for level control stop structure.
92  * @since_tizen 3.0
93  */
94 typedef struct {
95         short node_id; /**< Node ID */
96         char endpoint; /**< Endpoint */
97 } ZigbeeLevelControlStop_t;
98
99 #endif /* __ZIGBEE_LEVEL_CONTROL_TYPE_H__ */