Project

General

Profile

Revision 1591

wireless: update to the receive buffers

View differences:

wireless_receive.c
38 38
#include "wireless.h"
39 39
#include "xbee.h"
40 40

  
41
// the receive functions
42

  
43 41
/**
44
 * @addtogroup wireless Wireless
45
 * @{
42
 * Definition for wireless library receive packet structure
43
 *
44
 * Basic Buffer Packet:
45
 *   byte 1: length of data
46
 *   bytes 2-3: source
47
 *   bytes 4-n: data
48
 *
49
 * Other Buffer Packet:
50
 *   byte 1: length of data
51
 *   byte 2: group number
52
 *   bytes 3-4: source
53
 *   bytes 5-n: data
54
 *
46 55
 **/
47 56

  
48 57
extern uint8_t xbee_basic_buf[PACKET_BUFFER_SIZE];  // buffer for basic-group packets
......
51 60
extern uint8_t basic_buf_last;	// end of last packet in basic buffer
52 61
extern uint8_t other_buf_first; // beginning of first packet in other buffer
53 62
extern uint8_t other_buf_last;  // end of last packet in other buffer
63
 
64
 
65
// the receive functions
54 66

  
55 67
/**
68
 * @addtogroup wireless Wireless
69
 * @{
70
 **/
71

  
72
/**
56 73
 * the main receive function (similar to wl_do)
57 74
 * 
58 75
 * when called, this function will receive the next packet on the default packet group

Also available in: Unified diff