Public Member Functions | Private Attributes | List of all members
WatchdogTimer Class Reference

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
 

Detailed Description

A timer object to compare elapsed time against a timeout value.

Definition at line 16 of file WatchdogTimer.hpp.

Constructor & Destructor Documentation

WatchdogTimer::WatchdogTimer ( )

Constructor.

Konstruktor.

Der eigentliche Ablauf wird mit start() gestartet!

Definition at line 14 of file WatchdogTimer.cpp.

WatchdogTimer::~WatchdogTimer ( )
virtual

Destructor.

Definition at line 20 of file WatchdogTimer.cpp.

Member Function Documentation

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.

Member Data Documentation

Time WatchdogTimer::m_nextElapseTime
private

Definition at line 35 of file WatchdogTimer.hpp.

TimeDuration WatchdogTimer::m_timeoutInterval
private

Definition at line 36 of file WatchdogTimer.hpp.


The documentation for this class was generated from the following files:


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33