Main Page
Namespaces
Classes
Files
File List
File Members
src
tools
WatchdogTimer.hpp
Go to the documentation of this file.
1
// WatchdogTimer.hpp
2
// Copyright (c) SICK AG
3
// created: 06.06.2011
4
5
#ifndef WATCHDOGTIMER_HPP
6
#define WATCHDOGTIMER_HPP
7
8
#include "../BasicDatatypes.hpp"
9
//#include <sys/time.h>
10
#include "
Time.hpp
"
11
13
//
14
//
15
//
16
class
WatchdogTimer
17
{
18
public
:
20
WatchdogTimer
();
21
23
virtual
~WatchdogTimer
();
24
25
void
reset
();
26
27
void
start
(
UINT32
seconds);
// Initializes and starts the timer.
28
30
void
start
(
const
TimeDuration
interval);
31
32
bool
isElapsed
();
33
34
private
:
35
Time
m_nextElapseTime
;
36
TimeDuration
m_timeoutInterval
;
37
};
38
39
40
#endif // WATCHDOGTIMER_HPP
WatchdogTimer::isElapsed
bool isElapsed()
Definition:
WatchdogTimer.cpp:37
TimeDuration
Definition:
Time.hpp:16
Time
Definition:
Time.hpp:44
UINT32
uint32_t UINT32
Definition:
BasicDatatypes.hpp:26
Time.hpp
WatchdogTimer::reset
void reset()
Definition:
WatchdogTimer.cpp:52
WatchdogTimer::~WatchdogTimer
virtual ~WatchdogTimer()
Destructor.
Definition:
WatchdogTimer.cpp:20
WatchdogTimer::start
void start(UINT32 seconds)
Restarts the timer. Call this as "ok" signal.
WatchdogTimer
A timer object to compare elapsed time against a timeout value.
Definition:
WatchdogTimer.hpp:16
WatchdogTimer::m_nextElapseTime
Time m_nextElapseTime
Definition:
WatchdogTimer.hpp:35
WatchdogTimer::WatchdogTimer
WatchdogTimer()
Constructor.
Definition:
WatchdogTimer.cpp:14
WatchdogTimer::m_timeoutInterval
TimeDuration m_timeoutInterval
Definition:
WatchdogTimer.hpp:36
libsick_ldmrs
Author(s): SICK AG
, Martin Günther
, Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33