Contains definitions for the wireless library. More...
Go to the source code of this file.
Data Structures | |
struct | PacketGroupHandler |
Defines | |
#define | WL_MAX_PACKET_GROUPS 16 |
Functions | |
int | wl_init (void) |
Initialize the wireless library. | |
void | wl_terminate (void) |
Uninitialize the wireless library. | |
void | wl_do (void) |
Perform wireless library functionality. | |
void | wl_register_packet_group (PacketGroupHandler *h) |
Register a packet group with the wireless library. | |
void | wl_unregister_packet_group (PacketGroupHandler *h) |
Unregister a packet group with the wireless library. | |
int | wl_send_robot_to_robot_global_packet (char group, char type, char *data, int len, int dest, char frame) |
Send a packet to a specific robot in any PAN. | |
int | wl_send_robot_to_robot_packet (char group, char type, char *data, int len, int dest, char frame) |
Send a packet to a specific robot in our PAN. | |
int | wl_send_global_packet (char group, char type, char *data, int len, char frame) |
Send a packet to all robots. | |
void | wl_send_pan_packet (char group, char type, char *data, int len, char frame) |
Send a packet to all robots in our PAN. | |
int | wl_set_pan (int pan) |
Set the PAN we are using. | |
int | wl_get_pan (void) |
Get the PAN we are using. | |
int | wl_set_channel (int channel) |
Set the channel we are using. | |
int | wl_get_channel (void) |
Get the channel we are using. | |
int | wl_get_xbee_id (void) |
Get the 16-bit address of the XBee module. | |
void | wl_set_com_port (char *port) |
Set the com port on a computer, undefined on the robot. |
Contains definitions for the wireless library.
Copyright (c) 2007 Colony Project
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contains functions for the wireless library.
#define WL_MAX_PACKET_GROUPS 16 |
The maximum number of packet groups.
Referenced by wl_init(), wl_register_packet_group(), and wl_terminate().