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 (const TimeDuration interval)
 Initializes and starts the timer. interval = time in [s]. More...
 
void start (UINT32 seconds)
 Restarts the timer. Call this as "ok" signal. 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::WatchdogTimer ( )

Constructor.

Konstruktor.

Der eigentliche Ablauf wird mit start() gestartet!

Definition at line 14 of file WatchdogTimer.cpp.

◆ ~WatchdogTimer()

WatchdogTimer::~WatchdogTimer ( )
virtual

Destructor.

Definition at line 20 of file WatchdogTimer.cpp.

Member Function Documentation

◆ isElapsed()

bool WatchdogTimer::isElapsed ( )

Abfrage, ob der Timer abgelaufen ist.

Definition at line 37 of file WatchdogTimer.cpp.

◆ reset()

void WatchdogTimer::reset ( )

OK-Meldung der Applikation zum Ruecksetzen des Timers.

Definition at line 52 of file WatchdogTimer.cpp.

◆ start() [1/2]

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.

◆ start() [2/2]

void WatchdogTimer::start ( UINT32  seconds)

Restarts the timer. Call this as "ok" signal.

Member Data Documentation

◆ m_nextElapseTime

Time WatchdogTimer::m_nextElapseTime
private

Definition at line 35 of file WatchdogTimer.hpp.

◆ m_timeoutInterval

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 Wed Oct 26 2022 02:11:57