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