Go to the documentation of this file.
43 #ifdef MODULE_XBEE_ENCRYPTION
44 #define XBEE_MAX_PAYLOAD_LENGTH (95U)
46 #define XBEE_MAX_PAYLOAD_LENGTH (100U)
52 #define XBEE_MAX_PKT_LENGTH (115U)
57 #define XBEE_MAX_RESP_LENGTH (16U)
62 #define XBEE_MAX_TXHDR_LENGTH (14U)
67 #ifdef MODULE_GNRC_SIXLOWPAN
68 #define XBEE_DEFAULT_PROTOCOL (GNRC_NETTYPE_SIXLOWPAN)
70 #define XBEE_DEFAULT_PROTOCOL (GNRC_NETTYPE_UNDEF)
76 #define XBEE_DEFAULT_PANID (CONFIG_IEEE802154_DEFAULT_PANID)
81 #define XBEE_DEFAULT_CHANNEL (CONFIG_IEEE802154_DEFAULT_CHANNEL)
91 #define XBEE_ADDR_FLAGS_LONG (0x80)
138 uint8_t addr_short[2];
204 void *dst_addr,
size_t addr_len);
xbee_params_t p
configuration parameters
Structure to hold driver interface -> function mapping.
Data structure for extraction L2 information of received packets.
gpio_t pin_sleep
GPIO pin that is connected to the SLEEP pin set to GPIO_UNDEF if not used.
gpio_t pin_reset
GPIO pin that is connected to the STATUS pin set to GPIO_UNDEF if not used.
netdev_event_cb_t event_callback
callback for device events
IEEE 802.15.4 header definitions.
void * context
ptr to network stack context
@ XBEE_INT_STATE_IDLE
waiting for the beginning of a new frame
uint16_t rx_limit
size RX frame transferred
#define XBEE_MAX_PKT_LENGTH
Maximum packet length, including XBee API frame overhead.
uint16_t resp_limit
size RESP frame in transferred
int xbee_build_hdr(xbee_t *dev, uint8_t *xhdr, size_t payload_len, void *dst_addr, size_t addr_len)
Put together the internal proprietary XBee header.
@ XBEE_INT_STATE_SIZE2
waiting for the second byte (LSB) of the frame size field
uint8_t tx_fid
TX frame ID.
const netdev_driver_t xbee_driver
Reference to the XBee driver interface.
uint8_t addr_len
L2 address length (SRC and DST)
eui64_t addr_long
own 802.15.4 long address
uint16_t rx_count
counter for ongoing transmission
@ XBEE_INT_STATE_TYPE
waiting for the frame type field
unsigned int uart_t
Define default UART type identifier.
void xbee_setup(xbee_t *dev, const xbee_params_t *params)
Prepare the given Xbee device.
uint8_t options
options field
Low-level UART peripheral driver interface definition.
void(* netdev_event_cb_t)(netdev_t *dev, netdev_event_t event)
Event callback for signaling event to upper layers.
mutex_t tx_lock
mutex to allow only one transmission at a time
const struct netdev_driver * driver
ptr to that driver's interface.
#define XBEE_MAX_RESP_LENGTH
Maximum length of a command response.
Definitions low-level network driver interface.
Protocol type definitions.
uint16_t int_size
temporary space for parsing the frame size
@ XBEE_INT_STATE_RX
handling incoming data when receiving radio packets
mutex_t resp_lock
mutex for waiting for AT command response frames
xbee_rx_state_t int_state
current state if the UART RX FSM
Mutex for thread synchronization.
@ XBEE_INT_STATE_SIZE1
waiting for the first byte (MSB) of the frame size field
Low-level GPIO peripheral driver interface definitions.
uint16_t resp_count
counter for ongoing transmission
Data type to represent an EUI-64.
uint32_t br
baudrate to use
Configuration parameters for XBee devices.
xbee_rx_state_t
States of the internal FSM for handling incoming UART frames.
uint8_t bcast
0 := unicast, 1:=broadcast
uart_t uart
UART interfaced the device is connected to.
int xbee_parse_hdr(xbee_t *dev, const uint8_t *xhdr, xbee_l2hdr_t *l2hdr)
Extract IEEE802.15.4 L2 header information from the XBee header.
xtimer interface definitions
uint8_t addr_flags
address flags as defined above
@ XBEE_INT_STATE_RESP
handling incoming data for AT command responses