Revision 1345
Final spline code for master/slave
updated outdated libdragonfly and libwireless
wl_token_ring.h | ||
---|---|---|
1 | 1 |
/** |
2 |
* Copyright (c) 2007 Colony Project |
|
3 |
* |
|
4 |
* Permission is hereby granted, free of charge, to any person |
|
5 |
* obtaining a copy of this software and associated documentation |
|
6 |
* files (the "Software"), to deal in the Software without |
|
7 |
* restriction, including without limitation the rights to use, |
|
8 |
* copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 |
* copies of the Software, and to permit persons to whom the |
|
10 |
* Software is furnished to do so, subject to the following |
|
11 |
* conditions: |
|
12 |
* |
|
13 |
* The above copyright notice and this permission notice shall be |
|
14 |
* included in all copies or substantial portions of the Software. |
|
15 |
* |
|
16 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
17 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
18 |
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
19 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
20 |
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
21 |
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
22 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
23 |
* OTHER DEALINGS IN THE SOFTWARE. |
|
24 |
**/ |
|
25 |
|
|
26 |
/** |
|
2 | 27 |
* @file wl_token_ring.h |
3 | 28 |
* @brief Declarations for the token ring packet group |
4 | 29 |
* |
... | ... | |
7 | 32 |
* @author Brian Coltin, Colony Project, CMU Robotics Club |
8 | 33 |
**/ |
9 | 34 |
|
35 |
#ifndef WL_TOKEN_RING_H |
|
36 |
#define WL_TOKEN_RING_H |
|
37 |
|
|
10 | 38 |
/** |
11 | 39 |
* @defgroup tokenring Token Ring |
12 | 40 |
* @brief Wireless library token ring implementation |
... | ... | |
19 | 47 |
**/ |
20 | 48 |
|
21 | 49 |
/**@brief Register the token ring group with the wireless library.**/ |
22 |
void wl_token_ring_register(void);
|
|
50 |
int wl_token_ring_register(void);
|
|
23 | 51 |
/**@brief Unregister the token ring group with the wirelss library.**/ |
24 | 52 |
void wl_token_ring_unregister(void); |
25 | 53 |
/**@brief Set the functions called to turn the bom on and off.**/ |
26 |
void wl_token_ring_set_bom_functions(void (*on_function) (void), |
|
27 |
void (*off_function) (void), int (*max_bom_function) (void));
|
|
54 |
void wl_token_ring_set_bom_functions(void (*on_function) (void), void (*off_function) (void),
|
|
55 |
int (*max_bom_function) (void));
|
|
28 | 56 |
|
29 | 57 |
/**@brief Join the token ring **/ |
30 |
void wl_token_ring_join(void);
|
|
58 |
int wl_token_ring_join(void);
|
|
31 | 59 |
/**@brief Leave the token ring **/ |
32 | 60 |
void wl_token_ring_leave(void); |
33 |
/**@brief Request a BOM flash from the specified robot **/ |
|
34 |
void wl_token_request(int robot); |
|
35 | 61 |
|
36 | 62 |
/**@brief Return the number of robots in the token ring **/ |
37 | 63 |
int wl_token_get_robots_in_ring(void); |
... | ... | |
56 | 82 |
|
57 | 83 |
/** @} **/ //end token ring group |
58 | 84 |
|
85 |
#endif |
Also available in: Unified diff