High Level Wireless Packet Sending-Receiving Functions. More...
#include <wireless.h>
Go to the source code of this file.
Data Structures | |
struct | PacketInfo |
struct that contains relevant packet information More... | |
Defines | |
#define | WL_BASIC_GROUP 8 |
default wireless group for basic sending and receiving packets | |
Functions | |
int | wl_basic_init (void(*handle_receive)(char type, int source, unsigned char *packet, int length)) |
init wireless for Basic Group | |
int | wl_basic_init_default (void) |
init wireless for Basic Group with default packet handling | |
void | wl_basic_register_handler (void(*handle_receive)(char type, int source, unsigned char *packet, int length)) |
internal function to register a packet handler function | |
void | wl_basic_send_robot_packet (char type, char *data, int len, int dest) |
send a packet to a single robot in Basic Group | |
void | wl_basic_send_global_packet (char type, char *data, int len) |
send a packet to all robots in Basic Group | |
void | wl_basic_packet_receive_handler (char type, int source, unsigned char *packet, int length) |
internal default packet handler if none is specified on init | |
unsigned char * | wl_basic_do_default (void) |
wrapper for wl_do() to return packet data buffer | |
Variables | |
PacketGroupHandler | wl_basic_group_handler |
PacketGroupHandler struct for Basic Group. | |
struct PacketInfo | current_packet |
current packet information, correct after wl_basic_do() |
High Level Wireless Packet Sending-Receiving Functions.
Abstracted wireless functionality for sending and receiving packets