9f4a04ac38cfd270f6763073002fe6afbcf47ac1
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_color_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_COLOR_TYPE_H__
20 #define __ZIGBEE_ZCL_COLOR_TYPE_H__
21
22 /**
23  * @brief Definition for Zcl color move to hue structure.
24  * @since_tizen 3.0
25  */
26 typedef struct {
27         short node_id; /**< Node ID */
28         char dest_ep; /**< Destination endpoint */
29         char hue; /**< Hue */
30         char direction; /**< Direction */
31         short transition_time; /**< Transtion time */
32 } ZigbeeZclColorMoveToHue_t;
33
34 /**
35  * @brief Definition for Zcl color move hue structure.
36  * @since_tizen 3.0
37  */
38 typedef struct {
39         short node_id; /**< Node ID */
40         char dest_ep; /**< Destination endpoint */
41         char move_mode; /**< Move mode */
42         char rate; /**< Rate */
43 } ZigbeeZclColorMoveHue_t;
44
45 /**
46  * @brief Definition for Zcl color step hue structure.
47  * @since_tizen 3.0
48  */
49 typedef struct {
50         short node_id; /**< Node ID */
51         char dest_ep; /**< Destination endpoint */
52         char step_mode; /**< Step mode */
53         char step_zize; /**< Step size */
54         short transition_time; /**< Transtion time */
55 } ZigbeeZclColorStepHue_t;
56
57 /**
58  * @brief Definition for Zcl color move to staturation structure.
59  * @since_tizen 3.0
60  */
61 typedef struct {
62         short node_id; /**< Node ID */
63         char dest_ep; /**< Destination endpoint */
64         char saturation; /**< Saturation */
65         short transition_time; /**< Transtion time */
66 } ZigbeeZclColorMoveToSaturation_t;
67
68 /**
69  * @brief Definition for Zcl color move staturation structure.
70  * @since_tizen 3.0
71  */
72 typedef struct {
73         short node_id; /**< Node ID */
74         char dest_ep; /**< Destination endpoint */
75         char move_mode; /**< Move mode */
76         char rate; /**< Rate */
77 } ZigbeeZclColorMoveSaturation_t;
78
79 /**
80  * @brief Definition for Zcl color step saturation structure.
81  * @since_tizen 3.0
82  */
83 typedef struct {
84         short node_id; /**< Node ID */
85         char dest_ep; /**< Destination endpoint */
86         char step_mode; /**< Step mode */
87         char step_zize; /**< Step size */
88         short transition_time; /**< Transtion time */
89 } ZigbeeZclColorStepSaturation_t;
90
91 /**
92  * @brief Definition for Zcl color move to hue and saturation structure.
93  * @since_tizen 3.0
94  */
95 typedef struct {
96         short node_id; /**< Node ID */
97         char dest_ep; /**< Destination endpoint */
98         char hue; /**< Hue */
99         char saturation; /**< Saturation */
100         short transition_time; /**< Transtion time */
101 } ZigbeeZclColorMoveToHueAndSaturation_t;
102
103 /**
104  * @brief Definition for Zcl color move to color structure.
105  * @since_tizen 3.0
106  */
107 typedef struct {
108         short node_id; /**< Node ID */
109         char dest_ep; /**< Destination endpoint */
110         short color_x; /**< Color X */
111         short color_y; /**< Color Y */
112         short transition_time; /**< Transtion time */
113 } ZigbeeZclColorMoveToColor_t;
114
115 /**
116  * @brief Definition for Zcl color move color structure.
117  * @since_tizen 3.0
118  */
119 typedef struct {
120         short node_id; /**< Node ID */
121         char dest_ep; /**< Destination endpoint */
122         short rate_x; /**< Rate X */
123         short rate_y; /**< Rate Y */
124 } ZigbeeZclColorMoveColor_t;
125
126 /**
127  * @brief Definition for Zcl color step color structure.
128  * @since_tizen 3.0
129  */
130 typedef struct {
131         short node_id; /**< Node ID */
132         char dest_ep; /**< Destination endpoint */
133         short rate_x; /**< Rate X */
134         short rate_y; /**< Rate Y */
135         short transition_time; /**< Transtion time */
136 } ZigbeeZclColorStepColor_t;
137
138 /**
139  * @brief Definition for Zcl color move color temperature structure.
140  * @since_tizen 3.0
141  */
142 typedef struct {
143         short node_id; /**< Node ID */
144         char dest_ep; /**< Destination endpoint */
145         short color_temperature; /**< Color temperature*/
146         short transition_time; /**< Transtion time */
147 } ZigbeeZclColorMoveColorTemperature_t;
148
149 #endif /* __ZIGBEE_ZCL_COLOR_TYPE_H__ */