Digi XBee(R) ANSI C Host Library
zcl_onoff.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2012 Digi International Inc.,
3  * All rights not expressly granted are reserved.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
7  * You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
10  * =======================================================================
11  */
12 
36 #ifndef ZIGBEE_ZCL_ONOFF_H
37 #define ZIGBEE_ZCL_ONOFF_H
38 
40 #define ZCL_ONOFF_ATTR_ONOFF 0x0000
41 #define ZCL_ONOFF_ON 1
42 #define ZCL_ONOFF_OFF 0
43 
44 // Commands Received
45 
47 #define ZCL_ONOFF_CMD_OFF 0x00
48 
50 #define ZCL_ONOFF_CMD_ON 0x01
51 
53 #define ZCL_ONOFF_CMD_TOGGLE 0x02
54 
55 
56 
58 #define ZCL_SWITCH_ATTR_SWITCH_TYPE 0x0000
59 
60 // values for SwitchType
61 #define ZCL_SWITCH_TYPE_TOGGLE 0x00
62 #define ZCL_SWITCH_TYPE_MOMENTARY 0x01
63 
65 #define ZCL_SWITCH_ATTR_SWITCH_ACTIONS 0x0010
66 
67 // values for SwitchActions
68 #define ZCL_SWITCH_ACTION_ONOFF 0x00 // default
69 #define ZCL_SWITCH_ACTION_OFFON 0x01
70 #define ZCL_SWITCH_ACTION_TOGGLE 0x02
71 
72 #endif // ZIGBEE_ZCL_ONOFF_H defined
73