Project

General

Profile

Revision 79

Added by Chris Mar over 16 years ago

tried to merge lib_additions again...

View differences:

xbee.h
20 20
 **/
21 21

  
22 22
/*Definitions*/
23
/**@brief Do not change the PAN **/
23
/**@brief Unset PAN, uses XBee default **/
24 24
#define XBEE_PAN_DEFAULT 0xFFFF
25
/**@brief Unset channel, uses XBee default **/
26
#define XBEE_CHANNEL_DEFAULT 0
25 27
/**@brief Broadcast to all robots in the PAN **/
26 28
#define XBEE_BROADCAST 0xFFFF
27 29
/**@brief No special options **/
......
36 38
#define XBEE_RX 0x81
37 39

  
38 40
/**@brief Initialize the XBee library **/
39
void xbee_lib_init(int pan_id);
41
void xbee_lib_init(void);
40 42
/**@brief Uninitialize the XBee library **/
41 43
void xbee_terminate(void);
42 44
/**@brief Get a packet from the XBee **/
......
48 50
void xbee_set_pan_id(int id);
49 51
/**@brief Get the XBee's PAN ID **/
50 52
unsigned int xbee_get_pan_id(void);
53
/**@brief Set the channel the XBee is currently using **/
54
void xbee_set_channel(int channel);
55
/**@brief Get the channel the XBee is currently using **/
56
int xbee_get_channel(void);
51 57
/**@brief Get the XBee's 16-bit address **/
52 58
unsigned int xbee_get_address(void);
53 59

  

Also available in: Unified diff