Digi XBee(R) ANSI C Host Library
Data Structures | Macros | Functions
#include "xbee/platform.h"
#include "xbee/device.h"

Go to the source code of this file.

Data Structures

struct  xbee_header_user_data_tx_t
 Header of XBee API frame type 0x2D (XBEE_FRAME_USER_DATA_TX); sent from host to XBee. More...
 
struct  xbee_frame_user_data_rx_t
 Format of XBee API frame type 0xAD (XBEE_FRAME_USER_DATA_RX); received from XBee by host. More...
 

Macros

#define XBEE_FRAME_USER_DATA_TX   0x2D
 Frame Type: Send data to MicroPython or BLE interface.
 
#define XBEE_FRAME_USER_DATA_RX   0xAD
 Frame Type: Data received from MicroPython or BLE interface.
 
#define XBEE_USER_DATA_IF_SERIAL   0x00
 SPI/UART when in API mode.
 
#define XBEE_USER_DATA_IF_BLE   0x01
 Bluetooth.
 
#define XBEE_USER_DATA_IF_MICROPYTHON   0x02
 XBee-hosted MicroPython.
 

Functions

int xbee_user_data_relay_tx (xbee_dev_t *xbee, uint8_t dest, const void *payload, uint16_t length)
 Send a User Data Relay frame (XBEE_FRAME_USER_DATA_TX, type 0x2D). More...
 
const char * xbee_user_data_interface (uint8_t iface)
 Return a string description for an XBEE_USER_DATA_IF_xxx value. More...