Revision 424
changed various things in colonet dragonfly and server to make stuff work
colonet_wireless.h | ||
---|---|---|
11 | 11 |
|
12 | 12 |
#include <colonet_defs.h> |
13 | 13 |
|
14 |
typedef int(*MsgHandlerFunction)(unsigned char type, short source, int dest, unsigned char* data, int len); |
|
15 |
|
|
16 | 14 |
/** @brief Initializes colonet wireless library |
17 | 15 |
* |
18 | 16 |
* @param wl_port Either SERIAL_PORT or USB_PORT (as defined in COLONET_DEFS) |
... | ... | |
23 | 21 |
* |
24 | 22 |
* @return new ColonetWireless object |
25 | 23 |
*/ |
26 |
int colonet_wl_init(char* wl_port, MsgHandlerFunction message_handler_, char* log_filename_);
|
|
24 |
int colonet_wl_init(char* wl_port, char* log_filename_); |
|
27 | 25 |
|
28 | 26 |
/** @brief Spawns a thread which reads data from the hardware interface |
29 | 27 |
* with the colony (either a dongle or a robot programmed to relay data) |
... | ... | |
40 | 38 |
* |
41 | 39 |
* @return void |
42 | 40 |
*/ |
43 |
int colonet_wl_send(short client_source, short dest, ColonetMessageType msg_type, unsigned char msg_code, |
|
41 |
int colonet_wl_send(short client_source, short dest, ColonetRobotMessageType msg_type, unsigned char msg_code,
|
|
44 | 42 |
unsigned char* args); |
45 | 43 |
|
46 | 44 |
int colonet_get_num_robots(void); |
Also available in: Unified diff