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_LEVEL_CONTROL_TYPE_H__
20 #define __ZIGBEE_ZCL_LEVEL_CONTROL_TYPE_H__
22 #include <zigbee_types.h>
25 * @brief Definition for ZCL level control move to level structure.
29 unsigned short node_id; /**< Node ID */
30 unsigned char endpoint; /**< Endpoint */
31 unsigned char level; /**< Level */
32 unsigned short transition; /**< Transition time */
33 } ZigbeeZclLevelControlMoveToLevel_t;
36 * @brief Definition for ZCL level control move structure.
40 unsigned short node_id; /**< Node ID */
41 unsigned char endpoint; /**< Endpoint */
42 unsigned char move_mode; /**< Move mode */
43 unsigned char rate; /**< Rate of movement */
44 } ZigbeeZclLevelControlMove_t;
47 * @brief Definition for ZCL level control step structure.
51 unsigned short node_id; /**< Node ID */
52 unsigned char endpoint; /**< Endpoint */
53 unsigned char step_mode; /**< Step mode */
54 unsigned char step_size; /**< Step size */
55 unsigned short transition_time; /**< Transition time */
56 } ZigbeeZclLevelControlStep_t;
59 * @brief Definition for ZCL level control move to level with on/off structure.
63 unsigned short node_id; /**< Node ID */
64 unsigned char endpoint; /**< Endpoint */
65 unsigned char level; /**< Level */
66 unsigned short transition; /**< Transition time */
67 } ZigbeeZclLevelControlMoveToLevelWithOnOff_t;
70 * @brief Definition for ZCL level control move with on/off structure.
74 unsigned short node_id; /**< Node ID */
75 unsigned char endpoint; /**< Endpoint */
76 unsigned char move_mode; /**< Move mode */
77 unsigned char rate; /**< Rate of movement */
78 } ZigbeeZclLevelControlMoveWithOnOff_t;
81 * @brief Definition for ZCL level control step with on/off structure.
85 unsigned short node_id; /**< Node ID */
86 unsigned char endpoint; /**< Endpoint */
87 unsigned char step_mode; /**< Step mode */
88 unsigned char step_size; /**< Step size */
89 unsigned short transition_time; /**< Transition time */
90 } ZigbeeZclLevelControlStepWithOnOff_t;
93 * @brief Definition for ZCL level control stop structure.
97 unsigned short node_id; /**< Node ID */
98 unsigned char endpoint; /**< Endpoint */
99 } ZigbeeZclLevelControlStop_t;
101 #endif /* __ZIGBEE_ZCL_LEVEL_CONTROL_TYPE_H__ */