Remove warning related signedness
[platform/core/connectivity/zigbee-manager.git] / common / include / zigbee_zcl_color_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_ZCL_COLOR_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCL_COLOR_CONTROL_TYPE_H__
21
22 #include <zigbee_types.h>
23
24 /* --------------------------------------------------------------------------------------
25  * For Request
26  * -------------------------------------------------------------------------------------*/
27
28 /**
29  * @brief Definition for ZCL color control move to hue structure.
30  * @since_tizen 3.0
31  */
32 typedef struct {
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;
39
40 /**
41  * @brief Definition for ZCL color control move hue structure.
42  * @since_tizen 3.0
43  */
44 typedef struct {
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;
50
51 /**
52  * @brief Definition for ZCL color control step hue structure.
53  * @since_tizen 3.0
54  */
55 typedef struct {
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;
62
63 /**
64  * @brief Definition for ZCL color control move to saturation structure.
65  * @since_tizen 3.0
66  */
67 typedef struct {
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;
73
74 /**
75  * @brief Definition for ZCL color control move saturation structure.
76  * @since_tizen 3.0
77  */
78 typedef struct {
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;
84
85 /**
86  * @brief Definition for ZCL color control step saturation structure.
87  * @since_tizen 3.0
88  */
89 typedef struct {
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;
96
97 /**
98  * @brief Definition for ZCL color control move to hue and saturation structure.
99  * @since_tizen 3.0
100  */
101 typedef struct {
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;
108
109 /**
110  * @brief Definition for ZCL color control move to color structure.
111  * @since_tizen 3.0
112  */
113 typedef struct {
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;
120
121 /**
122  * @brief Definition for ZCL color control move color structure.
123  * @since_tizen 3.0
124  */
125 typedef struct {
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;
131
132 /**
133  * @brief Definition for ZCL color control step color structure.
134  * @since_tizen 3.0
135  */
136 typedef struct {
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;
143
144 /**
145  * @brief Definition for ZCL color control move color temperature structure.
146  * @since_tizen 3.0
147  */
148 typedef struct {
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;
154
155 #endif /* __ZIGBEE_ZCL_COLOR_CONTROL_TYPE_H__ */