Digi XBee(R) ANSI C Host Library
commissioning.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-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 
20 #ifndef XBEE_COMMISSIONING_H
21 #define XBEE_COMMISSIONING_H
22 
23 #include "xbee/device.h"
25 
27 
28 // XBee has hard-coded values, same as ZCL defaults except for ScanAttempts
29 // (which is set to 1 instead of 5).
30 #define XBEE_COMM_SCAN_ATTEMPTS 1
31 #define XBEE_COMM_TIME_BETWEEN_SCANS 0x0064
32 #define XBEE_COMM_REJOIN_INTERVAL 0x003C
33 #define XBEE_COMM_MAX_REJOIN_INTERVAL 0x0E10
34 
35 void xbee_commissioning_tick(xbee_dev_t *xbee, zcl_comm_state_t *comm_state);
36 int xbee_commissioning_set(xbee_dev_t *xbee, zcl_comm_startup_param_t *p);
37 
39 
40 // If compiling in Dynamic C, automatically #use the appropriate C file.
41 #ifdef __DC__
42  #use "xbee_commissioning.c"
43 #endif
44 
45 #endif // XBEE_COMMISSIONING_H defined
46 
Definition: zcl_commissioning.h:86
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
Header for ZCL Commissioning Cluster.
Definition: zcl_commissioning.h:43
Definition: device.h:361
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42