|
Digi XBee(R) ANSI C Host Library
|
Code related to processing XBee Frames. More...
#include <errno.h>#include <stddef.h>#include <stdio.h>#include <string.h>#include "xbee/platform.h"#include "xbee/device.h"#include "xbee/serial.h"#include "wpan/aps.h"#include "xbee/byteorder.h"Functions | |
| uint8_t | xbee_next_frame_id (xbee_dev_t *xbee) |
| Increment and return current frame ID for a given XBee device. More... | |
| int | xbee_dev_init (xbee_dev_t *xbee, const xbee_serial_t *serport, xbee_is_awake_fn is_awake, xbee_reset_fn reset) |
| Initialize the XBee device structure and open a serial connection to a local, serially-attached XBee module. More... | |
| void | xbee_dev_flowcontrol (xbee_dev_t *xbee, bool_t enabled) |
| Control whether xbee_frame_write() checks the XBee CTS signal before sending frames. More... | |
| void | xbee_dev_dump_settings (xbee_dev_t *xbee, uint16_t flags) |
| Print information to stdout about the XBee device. More... | |
| int | xbee_dev_reset (xbee_dev_t *xbee) |
| Toggles the reset line of the XBee device. More... | |
| int | xbee_dev_tick (xbee_dev_t *xbee) |
| Check for newly received frames on an XBee device and dispatch them to registered frame handlers. More... | |
| void | _xbee_dispatch_table_dump (const xbee_dev_t *xbee) |
| uint8_t | _xbee_checksum (const void FAR *bytes, uint16_t length, uint_fast8_t initial) |
| Calculate the checksum for an XBee frame. More... | |
| int | xbee_frame_write (xbee_dev_t *xbee, const void FAR *header, uint16_t headerlen, const void FAR *data, uint16_t datalen, uint16_t flags) |
| Copies a frame into the transmit serial buffer to send to an XBee module. More... | |
| int | _xbee_frame_load (xbee_dev_t *xbee) |
| Check XBee's serial buffer for complete frames and pass them off to the dispatcher. More... | |
| void | _xbee_dev_modem_status (wpan_dev_t *wpan, uint_fast8_t status) |
| Receive modem status frames and update flags/state of wpan_dev_t. More... | |
| int | _xbee_frame_dispatch (xbee_dev_t *xbee, const void FAR *frame, uint16_t length) |
| Function called by _xbee_frame_load() to dispatch any frames read. More... | |
| int | xbee_frame_dump_modem_status (xbee_dev_t *xbee, const void FAR *frame, uint16_t length, void FAR *context) |
| Frame handler for 0x8A (XBEE_FRAME_MODEM_STATUS) frames – dumps modem status to STDOUT for debugging purposes. More... | |
Code related to processing XBee Frames.
Need to update xbee_send and xbee_send_endpoint to accept a callback function and context. The transmit_status message will dispatch a message to that function and callback (and then automatically delete the callback).
1.8.11