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>
25 * @brief Definition for ZCL color control move to hue structure.
29 short node_id; /**< Node ID */
30 char dest_ep; /**< Destination endpoint */
32 char direction; /**< Direction */
33 short transition_time; /**< Transition time */
34 } ZigbeeZclColorControlMoveToHue_t;
37 * @brief Definition for ZCL color control move hue structure.
41 short node_id; /**< Node ID */
42 char dest_ep; /**< Destination endpoint */
43 char move_mode; /**< Move mode */
44 char rate; /**< Rate */
45 } ZigbeeZclColorControlMoveHue_t;
48 * @brief Definition for ZCL color control step hue structure.
52 short node_id; /**< Node ID */
53 char dest_ep; /**< Destination endpoint */
54 char step_mode; /**< Step mode */
55 char step_size; /**< Step size */
56 short transition_time; /**< Transition time */
57 } ZigbeeZclColorControlStepHue_t;
60 * @brief Definition for ZCL color control move to saturation structure.
64 short node_id; /**< Node ID */
65 char dest_ep; /**< Destination endpoint */
66 char saturation; /**< Saturation */
67 short transition_time; /**< Transition time */
68 } ZigbeeZclColorControlMoveToSaturation_t;
71 * @brief Definition for ZCL color control move saturation structure.
75 short node_id; /**< Node ID */
76 char dest_ep; /**< Destination endpoint */
77 char move_mode; /**< Move mode */
78 char rate; /**< Rate */
79 } ZigbeeZclColorControlMoveSaturation_t;
82 * @brief Definition for ZCL color control step saturation structure.
86 short node_id; /**< Node ID */
87 char dest_ep; /**< Destination endpoint */
88 char step_mode; /**< Step mode */
89 char step_size; /**< Step size */
90 short transition_time; /**< Transition time */
91 } ZigbeeZclColorControlStepSaturation_t;
94 * @brief Definition for ZCL color control move to hue and saturation structure.
98 short node_id; /**< Node ID */
99 char dest_ep; /**< Destination endpoint */
100 char hue; /**< Hue */
101 char saturation; /**< Saturation */
102 short transition_time; /**< Transition time */
103 } ZigbeeZclColorControlMoveToHueAndSaturation_t;
106 * @brief Definition for ZCL color control move to color structure.
110 short node_id; /**< Node ID */
111 char dest_ep; /**< Destination endpoint */
112 short color_x; /**< Color X */
113 short color_y; /**< Color Y */
114 short transition_time; /**< Transition time */
115 } ZigbeeZclColorControlMoveToColor_t;
118 * @brief Definition for ZCL color control move color structure.
122 short node_id; /**< Node ID */
123 char dest_ep; /**< Destination endpoint */
124 short rate_x; /**< Rate X */
125 short rate_y; /**< Rate Y */
126 } ZigbeeZclColorControlMoveColor_t;
129 * @brief Definition for ZCL color control step color structure.
133 short node_id; /**< Node ID */
134 char dest_ep; /**< Destination endpoint */
135 short rate_x; /**< Rate X */
136 short rate_y; /**< Rate Y */
137 short transition_time; /**< Transition time */
138 } ZigbeeZclColorControlStepColor_t;
141 * @brief Definition for ZCL color control move color temperature structure.
145 short node_id; /**< Node ID */
146 char dest_ep; /**< Destination endpoint */
147 short color_temperature; /**< Color temperature*/
148 short transition_time; /**< Transition time */
149 } ZigbeeZclColorControlMoveColorTemperature_t;
151 #endif /* __ZIGBEE_ZCL_COLOR_CONTROL_TYPE_H__ */