Digi XBee(R) ANSI C Host Library
scan.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2013 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 #include "xbee/platform.h"
21 #include "xbee/device.h"
22 #include "wpan/types.h"
23 
24 typedef XBEE_PACKED(, {
25  uint8_t as_type;
26  uint8_t channel;
27  uint16_t pan_be;
28  addr64 extended_pan_be;
29  uint8_t allow_join;
30  uint8_t stack_profile;
31  uint8_t lqi;
32  int8_t rssi;
34 
35 #if XBEE_WIFI_ENABLED
36 typedef XBEE_PACKED(, {
37  uint8_t as_type;
38  uint8_t channel;
39  uint8_t security_type;
40  uint8_t link_margin;
41  uint8_t ssid[31]; // variable length, not null-terminated
42 }) xbee_scan_wifi_response_t;
43 #endif
44 
45 typedef union {
46  uint8_t as_type;
48 #if XBEE_WIFI_ENABLED
49  xbee_scan_wifi_response_t wifi;
50 #endif
52 
53 // values for the as_type field of the ATAS response
54 #define XBEE_SCAN_TYPE_ZIGBEE 0x01
55 #if XBEE_WIFI_ENABLED
56 #define XBEE_SCAN_TYPE_WIFI 0x02
57 #endif
58 
59 int xbee_scan_dump_response( xbee_dev_t *xbee, const void FAR *raw,
60  uint16_t length, void FAR *context);
61 
signed char int8_t
8-bit signed integer
Definition: platform_config.h:38
Definition: scan.h:24
WPAN datatypes and support functions, valid for ZigBee and DigiMesh.
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
Common header for Hardware Abstraction Layer.
Definition: scan.h:45
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
Typedef used to hold a 64-bit IEEE address, represented as 8 bytes, 4 16-bit values or 2 32-bit value...
Definition: types.h:34
Definition: device.h:361