Revision 1589
Wrote basic receive function in wireless_receive.c. Added an error code for
having too short of a packet destination for basic receive function (maybe can
also be used by other packet handlers) in wl_defs.h. Added packet buffers for
basic packets and other types of packets in xbee.c.
xbee.c | ||
---|---|---|
112 | 112 |
|
113 | 113 |
//used to store packets as they are read |
114 | 114 |
static char xbee_buf[PACKET_BUFFER_SIZE]; |
115 |
static uint8_t xbee_basic_buf[PACKET_BUFFER_SIZE]; |
|
116 |
static uint8_t xbee_other_buf[PACKET_BUFFER_SIZE]; |
|
115 | 117 |
static int currentBufPos = 0; |
118 |
static uint8_t basic_buf_first = 0; // beginning of first packet in basic buffer |
|
119 |
static uint8_t basic_buf_last = 0; // end of last packet in basic buffer |
|
120 |
static uint8_t other_buf_first = 0; // beginning of first packet in other buffer |
|
121 |
static uint8_t other_buf_last = 0; // end of last packet in other buffer |
|
116 | 122 |
|
117 | 123 |
//XBee status |
118 | 124 |
static unsigned int xbee_panID = XBEE_PAN_DEFAULT; |
Also available in: Unified diff