A timer object to compare elapsed time against a timeout value. More...
#include <WatchdogTimer.hpp>
Public Member Functions | |
bool | isElapsed () |
void | reset () |
void | start (UINT32 seconds) |
Restarts the timer. Call this as "ok" signal. More... | |
void | start (const TimeDuration interval) |
Initializes and starts the timer. interval = time in [s]. More... | |
WatchdogTimer () | |
Constructor. More... | |
virtual | ~WatchdogTimer () |
Destructor. More... | |
Private Attributes | |
Time | m_nextElapseTime |
TimeDuration | m_timeoutInterval |
A timer object to compare elapsed time against a timeout value.
Definition at line 16 of file WatchdogTimer.hpp.
WatchdogTimer::WatchdogTimer | ( | ) |
Constructor.
Konstruktor.
Der eigentliche Ablauf wird mit start() gestartet!
Definition at line 14 of file WatchdogTimer.cpp.
|
virtual |
Destructor.
Definition at line 20 of file WatchdogTimer.cpp.
bool WatchdogTimer::isElapsed | ( | ) |
Abfrage, ob der Timer abgelaufen ist.
Definition at line 37 of file WatchdogTimer.cpp.
void WatchdogTimer::reset | ( | ) |
OK-Meldung der Applikation zum Ruecksetzen des Timers.
Definition at line 52 of file WatchdogTimer.cpp.
void WatchdogTimer::start | ( | UINT32 | seconds | ) |
Restarts the timer. Call this as "ok" signal.
void WatchdogTimer::start | ( | const TimeDuration | interval | ) |
Initializes and starts the timer. interval = time in [s].
Start the Timer.
Definition at line 28 of file WatchdogTimer.cpp.
|
private |
Definition at line 35 of file WatchdogTimer.hpp.
|
private |
Definition at line 36 of file WatchdogTimer.hpp.