Revision 79
tried to merge lib_additions again...
wl_token_ring.h | ||
---|---|---|
25 | 25 |
/**@brief Set the functions called to turn the bom on and off.**/ |
26 | 26 |
void wl_token_ring_set_bom_functions(void (*on_function) (void), |
27 | 27 |
void (*off_function) (void), int (*max_bom_function) (void)); |
28 |
|
|
28 | 29 |
/**@brief Join the token ring **/ |
29 | 30 |
void wl_token_ring_join(void); |
30 | 31 |
/**@brief Leave the token ring **/ |
31 | 32 |
void wl_token_ring_leave(void); |
32 | 33 |
/**@brief Request a BOM flash from the specified robot **/ |
33 | 34 |
void wl_token_request(int robot); |
35 |
|
|
36 |
/**@brief Return the number of robots in the token ring **/ |
|
37 |
int wl_token_get_robots_in_ring(void); |
|
38 |
/**@brief Return whether a given robot is in the token ring **/ |
|
39 |
int wl_token_is_robot_in_ring(int robot); |
|
40 |
|
|
41 |
/**@brief Begin iterating through robots in the token ring **/ |
|
42 |
void wl_token_iterator_begin(void); |
|
43 |
/**@brief Returns whether there are more robots to iterate through **/ |
|
44 |
int wl_token_iterator_has_next(void); |
|
45 |
/**@brief Returns the ID of the next robot in the token ring **/ |
|
46 |
int wl_token_iterator_next(void); |
|
47 |
|
|
34 | 48 |
/**@brief Return the latest BOM reading between two robots **/ |
35 | 49 |
int wl_token_get_sensor_reading(int source, int dest); |
36 | 50 |
/**@brief Return the latest BOM reading between us and another robot **/ |
37 | 51 |
int wl_token_get_my_sensor_reading(int dest); |
52 |
/**@brief Return the number of robots in the sensor matrix.*/ |
|
53 |
int wl_token_get_num_robots(void); |
|
54 |
/**@brief Return the number of non-null elements in the sensor matrix*/ |
|
55 |
int wl_token_get_matrix_size(void); |
|
38 | 56 |
|
39 | 57 |
/** @} **/ //end token ring group |
40 | 58 |
|
Also available in: Unified diff