Revision 1601
wireless: more xbee.c updates
xbee.h | ||
---|---|---|
90 | 90 |
* @{ **/ |
91 | 91 |
|
92 | 92 |
// TODO: add comments for all of these definitions |
93 |
#define XBEE_FRAME_START 0x7E |
|
94 |
#define XBEE_GET_PACKET_TIMEOUT 1000 |
|
95 | 93 |
|
96 | 94 |
/*Frame Types*/ |
95 |
#define XBEE_FRAME_START 0x7E |
|
97 | 96 |
#define XBEE_FRAME_STATUS 0x8A |
98 | 97 |
#define XBEE_FRAME_AT_COMMAND 0x08 |
99 | 98 |
#define XBEE_FRAME_AT_COMMAND_RESPONSE 0x88 |
... | ... | |
125 | 124 |
int xbee_lib_init(void); |
126 | 125 |
/**@brief Uninitialize the XBee library **/ |
127 | 126 |
void xbee_terminate(void); |
128 |
/**@brief Get a packet from the XBee **/ |
|
129 |
int xbee_get_packet(unsigned char* packet); |
|
130 | 127 |
/**@brief Send a packet to the XBee **/ |
131 | 128 |
int xbee_send_packet(char* packet, int len, int dest, char options, char frame); |
132 | 129 |
/**@brief Set the PAN ID for the XBee **/ |
Also available in: Unified diff