|
avr-classes
|
#include <stopwatchtimer.h>
Public Member Functions | |
| StopWatchTimer (void) | |
| virtual void | onTick (void) override |
| void | reset (void) |
| COUNTERTYPE | getValue (void) const |
Public Member Functions inherited from TimerService | |
| TimerService (void) | |
| void | start (void) |
| void | stop (void) |
| bool | isRunning (void) const |
A StopWatchTimer is an upcounting timer that can be started, stopped and reset to zero. The current timer value can be queried at any time. The value silently flows over when its maximum is reached. The StopWatchTimer needs to be added to a TimerServiceHost instance. The base tick frequency of the TimerServiceHost specifies the rate at which the timer value is incremented.
| COUNTERTYPE | Data type for timeout value, e.g. uint16_t. |
|
inline |
Constructor.
|
inline |
Gets the current timer value.
|
inlineoverridevirtual |
Callback for base tick events of TimerServiceHost. Called from ISR context.
Implements TimerService.
|
inline |
Resets the timeout value to zero.
1.8.13