Digi XBee(R) ANSI C Host Library
Data Structures | Data Fields
xbee_dev_t Struct Reference

#include "xbee/device.h"

Data Structures

struct  rx
 Current mode of the XBee device (e.g., boot loader, API, command). More...
 

Data Fields

wpan_dev_t wpan_dev
 Generic WPAN device required by the Zigbee Networking layers of the API.
 
xbee_serial_t serport
 Platform-specific structure required by xbee_serial.c.
 
xbee_reset_fn reset
 Optional function to control reset pin.
 
xbee_is_awake_fn is_awake
 Optional function to read AWAKE pin.
 
xbee_disc_node_id_fn node_id_handler
 Optional function to receive parsed Node ID messages.
 
uint16_t hardware_version
 Value of XBee module's HV register.
 
uint16_t hardware_series
 Value of XBee module's HS register.
 
uint32_t firmware_version
 Value of XBee module's VR register (4-bytes on some devices)
 
enum xbee_dev_flags flags
 Multi-purpose flags for tracking information about this device.
 
uint8_t frame_id
 last frame_id used for sending
 
struct xbee_dev_t::rx rx
 

Detailed Description

Note
  • This structure must start with a wpan_dev_t so that the device can be used with the wpan library.
  • Uses function pointers for setting the reset pin and reading the awake pin on the XBee. User code should not call the reset function directly; use xbee_dev_reset() instead so the various network layers will know about the reset.

The documentation for this struct was generated from the following file: