|
wavelength 1.0.0
|
A hardware timer that wakes one thread at a fixed interval. More...
#include <periodictimer.h>
Public Member Functions | |
| int | Init () |
| Allocate a 32-bit system clock timer with Handler() at a 6 millisecond interval. | |
| int | Start () |
| Start the timer. | |
| int | Free () |
| Release the timer. | |
| int | Stop () |
| Stop the timer. | |
Static Public Member Functions | |
| static unsigned int | Handler (void *common) |
| Wake the timer's thread. | |
Public Attributes | |
| int | mThread |
| int | mTimer |
| unsigned int | mInterval |
A hardware timer that wakes one thread at a fixed interval.
The class is not polymorphic and emits no RTTI. Its name is inferred from its routines.
|
static |
Wake the timer's thread.
The timer runs it in interrupt context.
| common | The PeriodicTimer. |
| int PeriodicTimer::Init | ( | ) |
Allocate a 32-bit system clock timer with Handler() at a 6 millisecond interval.
| int PeriodicTimer::Start | ( | ) |
Start the timer.
| int PeriodicTimer::Free | ( | ) |
Release the timer.
| int PeriodicTimer::Stop | ( | ) |
Stop the timer.
| int PeriodicTimer::mThread |
Thread the timer wakes.
| int PeriodicTimer::mTimer |
Hardware timer identifier.
| unsigned int PeriodicTimer::mInterval |
Interval in system clock cycles.