Go to the source code of this file.
Functions | |
void | wl_token_ring_register (void) |
Register the token ring group with the wireless library. | |
void | wl_token_ring_unregister (void) |
Unregister the token ring group with the wirelss library. | |
void | wl_token_ring_set_bom_functions (void(*on_function)(void), void(*off_function)(void), int(*max_bom_function)(void)) |
Set the functions called to turn the bom on and off. | |
void | wl_token_ring_join (void) |
Join the token ring. | |
void | wl_token_ring_leave (void) |
Leave the token ring. | |
int | wl_token_get_robots_in_ring (void) |
Return the number of robots in the token ring. | |
int | wl_token_is_robot_in_ring (int robot) |
Return whether a given robot is in the token ring. | |
void | wl_token_iterator_begin (void) |
Begin iterating through robots in the token ring. | |
int | wl_token_iterator_has_next (void) |
Returns whether there are more robots to iterate through. | |
int | wl_token_iterator_next (void) |
Returns the ID of the next robot in the token ring. | |
int | wl_token_get_sensor_reading (int source, int dest) |
Return the latest BOM reading between two robots. | |
int | wl_token_get_my_sensor_reading (int dest) |
Return the latest BOM reading between us and another robot. | |
int | wl_token_get_num_robots (void) |
Return the number of robots in the sensor matrix. | |
int | wl_token_get_matrix_size (void) |
Return the number of non-null elements in the sensor matrix. |
Contains declarations for the token ring packet group.