Project

General

Profile

Revision 418

added return values to a bunch of libwireless functions. Makefile for colonetserver now compiles libwireless when necessary. added static to a bunch of libwireless vars. commented out colonet timeout

View differences:

wireless.h
118 118
} PacketGroupHandler;
119 119

  
120 120
/**@brief Initialize the wireless library **/
121
int wl_init();
121
int wl_init(void);
122 122
/**@brief Uninitialize the wireless library **/
123 123
void wl_terminate(void);
124 124
/**@brief Perform wireless library functionality **/
......
129 129
void wl_unregister_packet_group(PacketGroupHandler* h);
130 130

  
131 131
/**@brief Send a packet to a specific robot in any PAN **/
132
void wl_send_robot_to_robot_global_packet(char group, char type,
133
		char* data, int len, int dest, char frame);
132
int wl_send_robot_to_robot_global_packet(char group, char type, char* data, int len, int dest, char frame);
134 133
/**@brief Send a packet to a specific robot in our PAN **/
135
void wl_send_robot_to_robot_packet(char group, char type, char* data, int len, int dest, char frame);
134
int wl_send_robot_to_robot_packet(char group, char type, char* data, int len, int dest, char frame);
136 135
/**@brief Send a packet to all robots **/
137 136
int wl_send_global_packet(char group, char type, char* data, int len, char frame);
138 137
/**@brief Send a packet to all robots in our PAN **/
139
void wl_send_pan_packet(char group, char type,
140
		char* data, int len, char frame);
138
void wl_send_pan_packet(char group, char type, char* data, int len, char frame);
141 139

  
142 140
/**@brief Set the PAN we are using **/
143
void wl_set_pan(int pan);
141
int wl_set_pan(int pan);
144 142
/**@brief Get the PAN we are using **/
145 143
int wl_get_pan(void);
146 144
/**@brief Set the channel we are using **/
147
void wl_set_channel(int channel);
145
int wl_set_channel(int channel);
148 146
/**@brief Get the channel we are using **/
149 147
int wl_get_channel(void);
150 148
/**@brief Get the 16-bit address of the XBee module **/

Also available in: Unified diff