XBee Firmware Library  1.6.0
Data Fields
xbee_cmd_request Struct Reference

Data Fields

wpan_address_t address
 address of target device (64-bit IEEE and 16-bit network) More...
 
xbee_cmd_callback_fn callback
 function to pass responses to More...
 
xbee_at_cmd_t command
 command to send More...
 
void FAR * context
 context to pass to callback function More...
 
xbee_dev_tdevice
 
uint16_t flags
 combination of XBEE_CMD_FLAG_* macros More...
 
uint8_t frame_id
 frame_id of last request sent More...
 
uint8_t param [XBEE_CMD_MAX_PARAM_LENGTH]
 bytes sent in the request or returned in the response More...
 
uint8_t param_length
 number of bytes stored in .param[] More...
 
uint8_t sequence
 
uint16_t timeout
 expire entry if XBEE_CHECK_TIMEOUT_SEC(timeout) is true More...
 

Detailed Description

This structure is used to keep track of outstanding local and remote AT requests.

Field Documentation

wpan_address_t address

address of target device (64-bit IEEE and 16-bit network)

function to pass responses to

xbee_at_cmd_t command

command to send

void FAR* context

context to pass to callback function

xbee_dev_t* device

Device that sent this request – if we have a table for each XBee, this element isn't necessary. NULL if slot is empty.

uint16_t flags

combination of XBEE_CMD_FLAG_* macros

uint8_t frame_id

frame_id of last request sent

uint8_t param[XBEE_CMD_MAX_PARAM_LENGTH]

bytes sent in the request or returned in the response

uint8_t param_length

number of bytes stored in .param[]

uint8_t sequence

Rolling identifier used to prevent use of stale request indicies. Handle is a combination of index and this sequence byte.

uint16_t timeout

expire entry if XBEE_CHECK_TIMEOUT_SEC(timeout) is true