wireless.c File Reference

Wireless Library Implementation. More...

#include "wireless.h"
#include "xbee.h"
#include <stdlib.h>
#include <stdio.h>
#include "wl_defs.h"
#include <sys/time.h>
#include <signal.h>

Functions

int wl_init ()
 Initialize the wireless library.
void wl_terminate ()
 Uninitialize the wireless library.
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 ()
 Get the 16-bit address of the XBee module.
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.
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.
void wl_do ()
 Perform wireless library functionality.
void wl_set_com_port (char *port)
 Set the com port on a computer, undefined on the robot.


Detailed Description

Wireless Library Implementation.

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.

Implementation of the wireless library.

Author:
Brian Coltin, Colony Project, CMU Robotics Club

Generated on Fri Sep 4 13:14:45 2009 for libwireless by  doxygen 1.5.9