Revision 60
Updated wireless library to add different channels.
wireless.h | ||
---|---|---|
13 | 13 |
* The maximum number of packet groups. |
14 | 14 |
**/ |
15 | 15 |
#define WL_MAX_PACKET_GROUPS 16 |
16 |
/** |
|
17 |
* The default PAN. |
|
18 |
**/ |
|
19 |
#define WL_DEFAULT_PAN 0x3331 |
|
20 | 16 |
|
21 | 17 |
/** |
22 | 18 |
* @defgroup wireless Wireless |
... | ... | |
103 | 99 |
void wl_register_packet_group(PacketGroupHandler* h); |
104 | 100 |
/**@brief Unregister a packet group with the wireless library **/ |
105 | 101 |
void wl_unregister_packet_group(PacketGroupHandler* h); |
102 |
|
|
106 | 103 |
/**@brief Send a packet to a specific robot in any PAN **/ |
107 | 104 |
void wl_send_robot_to_robot_global_packet(char group, char type, |
108 | 105 |
char* data, int len, int dest, char frame); |
... | ... | |
115 | 112 |
/**@brief Send a packet to all robots in our PAN **/ |
116 | 113 |
void wl_send_pan_packet(char group, char type, |
117 | 114 |
char* data, int len, char frame); |
115 |
|
|
116 |
/**@brief Set the PAN we are using **/ |
|
117 |
void wl_set_pan(int pan); |
|
118 |
/**@brief Get the PAN we are using **/ |
|
119 |
int wl_get_pan(void); |
|
120 |
/**@brief Set the channel we are using **/ |
|
121 |
void wl_set_channel(int channel); |
|
122 |
/**@brief Get the channel we are using **/ |
|
123 |
int wl_get_channel(void); |
|
118 | 124 |
/**@brief Get the 16-bit address of the XBee module **/ |
119 | 125 |
unsigned int wl_get_xbee_id(void); |
120 | 126 |
|
Also available in: Unified diff