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_COLOR_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCL_COLOR_CONTROL_TYPE_H__
22 #include <zigbee_types.h>
24 /* --------------------------------------------------------------------------------------
26 * -------------------------------------------------------------------------------------*/
29 * @brief Definition for ZCL color control move to hue structure.
33 unsigned short node_id; /**< Node ID */
34 unsigned char dest_ep; /**< Destination endpoint */
35 unsigned char hue; /**< Hue */
36 unsigned char direction; /**< Direction */
37 unsigned short transition_time; /**< Transition time */
38 } ZigbeeZclColorControlMoveToHue_t;
41 * @brief Definition for ZCL color control move hue structure.
45 unsigned short node_id; /**< Node ID */
46 unsigned char dest_ep; /**< Destination endpoint */
47 unsigned char move_mode; /**< Move mode */
48 unsigned char rate; /**< Rate */
49 } ZigbeeZclColorControlMoveHue_t;
52 * @brief Definition for ZCL color control step hue structure.
56 unsigned short node_id; /**< Node ID */
57 unsigned char dest_ep; /**< Destination endpoint */
58 unsigned char step_mode; /**< Step mode */
59 unsigned char step_size; /**< Step size */
60 unsigned char transition_time; /**< Transition time */
61 } ZigbeeZclColorControlStepHue_t;
64 * @brief Definition for ZCL color control move to saturation structure.
68 unsigned short node_id; /**< Node ID */
69 unsigned char dest_ep; /**< Destination endpoint */
70 unsigned char saturation; /**< Saturation */
71 unsigned short transition_time; /**< Transition time */
72 } ZigbeeZclColorControlMoveToSaturation_t;
75 * @brief Definition for ZCL color control move saturation structure.
79 unsigned short node_id; /**< Node ID */
80 unsigned char dest_ep; /**< Destination endpoint */
81 unsigned char move_mode; /**< Move mode */
82 unsigned char rate; /**< Rate */
83 } ZigbeeZclColorControlMoveSaturation_t;
86 * @brief Definition for ZCL color control step saturation structure.
90 unsigned short node_id; /**< Node ID */
91 unsigned char dest_ep; /**< Destination endpoint */
92 unsigned char step_mode; /**< Step mode */
93 unsigned char step_size; /**< Step size */
94 unsigned char transition_time; /**< Transition time */
95 } ZigbeeZclColorControlStepSaturation_t;
98 * @brief Definition for ZCL color control move to hue and saturation structure.
102 unsigned short node_id; /**< Node ID */
103 unsigned char dest_ep; /**< Destination endpoint */
104 unsigned char hue; /**< Hue */
105 unsigned char saturation; /**< Saturation */
106 unsigned short transition_time; /**< Transition time */
107 } ZigbeeZclColorControlMoveToHueAndSaturation_t;
110 * @brief Definition for ZCL color control move to color structure.
114 unsigned short node_id; /**< Node ID */
115 unsigned char dest_ep; /**< Destination endpoint */
116 unsigned short color_x; /**< Color X */
117 unsigned short color_y; /**< Color Y */
118 unsigned short transition_time; /**< Transition time */
119 } ZigbeeZclColorControlMoveToColor_t;
122 * @brief Definition for ZCL color control move color structure.
126 unsigned short node_id; /**< Node ID */
127 unsigned char dest_ep; /**< Destination endpoint */
128 unsigned short rate_x; /**< Rate X */
129 unsigned short rate_y; /**< Rate Y */
130 } ZigbeeZclColorControlMoveColor_t;
133 * @brief Definition for ZCL color control step color structure.
137 unsigned short node_id; /**< Node ID */
138 unsigned char dest_ep; /**< Destination endpoint */
139 unsigned short step_x; /**< Step X */
140 unsigned short step_y; /**< Step Y */
141 unsigned short transition_time; /**< Transition time */
142 } ZigbeeZclColorControlStepColor_t;
145 * @brief Definition for ZCL color control move color temperature structure.
149 unsigned short node_id; /**< Node ID */
150 unsigned char dest_ep; /**< Destination endpoint */
151 unsigned short color_temperature; /**< Color temperature*/
152 unsigned short transition_time; /**< Transition time */
153 } ZigbeeZclColorControlMoveColorTemperature_t;
155 #endif /* __ZIGBEE_ZCL_COLOR_CONTROL_TYPE_H__ */