Data Fields | |
uint8 | apiId |
the API ID for this packet that subsequent response/status messages can refer to. | |
uint8 | crc |
The checksum for this packet - mostly used internally by XBee_SendPacket() and XBee_GetPacket(). | |
uint8 * | dataPtr |
A pointer into the packet structure itself. | |
int | rxState |
Used internally by XBee_GetPacket() to keep track of the parse state. | |
int | length |
The length of a packet - only useful after a successful call to XBee_GetPacket(). | |
int | index |
Used internally by XBee_GetPacket() to keep track of the current length. | |
XBee_TX64 | tx64 |
TX 64 packet. | |
XBee_TX16 | tx16 |
TX 16 packet. | |
XBee_TXStatus | txStatus |
TX status packet. | |
XBee_RX64 | rx64 |
RX 64 packet. | |
XBee_RX16 | rx16 |
RX 16 packet. | |
XBee_ATCommand | atCommand |
AT Command packet. | |
XBee_ATCommandResponse | atResponse |
AT Command Response packet. | |
XBee_IO64 | io64 |
IO 64 packet. | |
XBee_IO16 | io16 |
IO 16 packet. |
The XBeePacket structure consists of an API ID, indicating the kind of packet it is, as well as providing the structure for that particular packet. Only one packet type will be valid at a time, as indicated by the apiId:
Example
XBeePacket* xbp; if( xbp->apiId == XBEE_IO16 ) { int signalStrength = xbp->io16.rssi; // and so on... }
Definition at line 212 of file xbee.h.
uint8 XBeePacket::apiId |
uint8 XBeePacket::crc |
The checksum for this packet - mostly used internally by XBee_SendPacket() and XBee_GetPacket().
uint8* XBeePacket::dataPtr |
Used internally by XBee_GetPacket() to keep track of the current length.
The length of a packet - only useful after a successful call to XBee_GetPacket().
Used internally by XBee_GetPacket() to keep track of the parse state.