root/ResearchApps/MAC/HOPMAC/hopMacServer.h
| Revision 998, 1.1 kB (checked in by chunter, 3 months ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | /*! \file hopMacServer.h |
| 2 | \brief Hop MAC Workshop Exercise. |
| 3 | |
| 4 | @version 10 |
| 5 | @author Chris Hunter |
| 6 | |
| 7 | This exercise is an extension of the previous |
| 8 | HALFMAC exercise. In fact, you are welcome |
| 9 | top copy and paste the parts of the code you |
| 10 | completed in that exercise for the similar |
| 11 | tasks here. |
| 12 | |
| 13 | The twist in this lab is that the server |
| 14 | will periodically hop to a new part of the |
| 15 | spectrum. Before doing so, it will transmit |
| 16 | a special control packet (HOPPACKET) that |
| 17 | contains the destination frequency band. |
| 18 | |
| 19 | If the packet is missed, your receiver will |
| 20 | be stuck until the transmitter randomly hops |
| 21 | back onto the channel you were sitting at. |
| 22 | This can potentially be a very long time. |
| 23 | An advanced extension to this lab is to |
| 24 | scan for packets in various channels when |
| 25 | no good packet is received for a certain |
| 26 | amount of time. For our purposes, let this |
| 27 | timeout be around 200ms. |
| 28 | */ |
| 29 | |
| 30 | void up(); |
| 31 | void middle(); |
| 32 | void right(); |
| 33 | void left(); |
| 34 | void phyRx_goodHeader_callback(Macframe* packet); |
| 35 | void phyRx_badHeader_callback(); |
| 36 | void emacRx_callback(Xuint32 length); |
| 37 | void timer_callback(unsigned char timerType); |
| 38 | int main(); |
Note: See TracBrowser
for help on using the browser.