Revision 1456 branches/colonetmk2/code/projects/libwireless/lib/wl_token_ring.h
| wl_token_ring.h (revision 1456) | ||
|---|---|---|
| 35 | 35 |
#ifndef WL_TOKEN_RING_H |
| 36 | 36 |
#define WL_TOKEN_RING_H |
| 37 | 37 |
|
| 38 |
#include "sensor_matrix.h" |
|
| 39 |
|
|
| 38 | 40 |
/** |
| 39 | 41 |
* @defgroup tokenring Token Ring |
| 40 | 42 |
* @brief Wireless library token ring implementation |
| ... | ... | |
| 52 | 54 |
void wl_token_ring_unregister(void); |
| 53 | 55 |
/**@brief Set the functions called to turn the bom on and off.**/ |
| 54 | 56 |
void wl_token_ring_set_bom_functions(void (*on_function) (void), void (*off_function) (void), |
| 55 |
int (*max_bom_function) (void)); |
|
| 57 |
SensorReading (*max_bom_function) (void)); |
|
| 56 | 58 |
|
| 57 | 59 |
/**@brief Join the token ring **/ |
| 58 | 60 |
int wl_token_ring_join(void); |
| ... | ... | |
| 72 | 74 |
int wl_token_iterator_next(void); |
| 73 | 75 |
|
| 74 | 76 |
/**@brief Return the latest BOM reading between two robots **/ |
| 75 |
int wl_token_get_sensor_reading(int source, int dest); |
|
| 77 |
SensorReading * wl_token_get_sensor_reading(int source, int dest); |
|
| 76 | 78 |
/**@brief Return the latest BOM reading between us and another robot **/ |
| 77 |
int wl_token_get_my_sensor_reading(int dest); |
|
| 79 |
SensorReading * wl_token_get_my_sensor_reading(int dest); |
|
| 78 | 80 |
/**@brief Return the number of robots in the sensor matrix.*/ |
| 79 | 81 |
int wl_token_get_num_robots(void); |
| 80 | 82 |
/**@brief Return the number of non-null elements in the sensor matrix*/ |
Also available in: Unified diff