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