tac0S
Template Affectional Command Operating System
|
The following class defines a hardware timer. More...
#include <timer.h>
Public Member Functions | |
Timer (VoidFunctionPtr timerHandler, int callArg, bool doRandom) | |
Timer::Timer Initialize a hardware timer device. Save the place to call on each interrupt, and then arrange for the timer to start generating interrupts. More... | |
void | TimerExpired () |
Timer::TimerExpired Routine to simulate the interrupt generated by the hardware timer device. Schedule the next interrupt, and invoke the interrupt handler. | |
int | TimeOfNextInterrupt () |
Timer::TimeOfNextInterrupt. More... | |
The following class defines a hardware timer.
Timer::Timer | ( | VoidFunctionPtr | timerHandler, |
int | callArg, | ||
bool | doRandom | ||
) |
Timer::Timer Initialize a hardware timer device. Save the place to call on each interrupt, and then arrange for the timer to start generating interrupts.
timerHandler | is the interrupt handler for the timer device. It is called with interrupts disabled every time the the timer expires. |
callArg | is the parameter to be passed to the interrupt handler. |
doRandom | – if true, arrange for the interrupts to occur at random, instead of fixed, intervals. |
int Timer::TimeOfNextInterrupt | ( | ) |