Digi XBee(R) ANSI C Host Library
zcl_identify.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 
25 #ifndef ZIGBEE_ZCL_IDENTIFY_H
26 #define ZIGBEE_ZCL_IDENTIFY_H
27 
28 #include "zigbee/zcl.h"
29 
31 
32 extern const zcl_attribute_tree_t zcl_identify_attribute_tree[];
33 
34 #define ZCL_IDENTIFY_ATTR_IDENTIFY_TIME 0x0000
35 
37 // client->server commands
38 #define ZCL_IDENTIFY_CMD_IDENTIFY 0x00
39 #define ZCL_IDENTIFY_CMD_QUERY 0x01
41 
43 // server->client responses
44 #define ZCL_IDENTIFY_CMD_QUERY_RESPONSE 0x00
45 
47 int zcl_identify_command( const wpan_envelope_t FAR *envelope,
48  void FAR *context);
49 
51 
53 #define ZCL_CLUST_ENTRY_IDENTIFY_SERVER \
54  { ZCL_CLUST_IDENTIFY, \
55  &zcl_identify_command, \
56  zcl_identify_attribute_tree, \
57  WPAN_CLUST_FLAG_SERVER }
58 
60 
61 #ifdef __DC__
62  #use "zcl_identify.c"
63 #endif
64 
65 #endif // ZIGBEE_ZCL_IDENTIFY_H
66 
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
Header for implementation of ZigBee Cluster Library.
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
Definition: zcl.h:854
uint16_t zcl_identify_isactive(void)
Used by main program to see if a device is in "Identification mode".
Definition: zcl_identify.c:65
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
The "envelope" is used to gather all necessary information about a given frame on the network...
Definition: aps.h:40
int zcl_identify_command(const wpan_envelope_t FAR *envelope, void FAR *context)
Handler for ZCL Identify Server Commands (Identify, IdentifyQuery).
Definition: zcl_identify.c:181