245 | | |
246 | | |
| 245 | [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 SetTimer] |
| 246 | The setTimer function allows the use of software timers for the MAC. Currently, the two types of timers for transmitting and the other for receiving. |
| 247 | This function is called each time a Map entry is read and a specific time needs to be set for waiting or transmitting. Once the timer expires, |
| 248 | the timer hadler function is called and the state of the machine can be changed. |
| 249 | |
| 250 | |
| 251 | [source:/ResearchApps/MAC/WANMAC/Basestation/basestation.c@305#L51 TransmitfrmQ] |
| 252 | This function makes the call to pull out packets from the queue specified and hands them over to the PHY layer. It simply waits in the while |
| 253 | loop as long the timer goes on. |