F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
WatchdogTimer.cpp
Go to the documentation of this file.
1
#include <
Os/WatchdogTimer.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
4
namespace
Os
{
5
6
WatchdogTimer::WatchdogTimer
()
7
: m_handle(0),m_cb(nullptr),m_parameter(nullptr),m_timerTicks(0),m_timerMs(0)
8
{
9
}
10
11
WatchdogTimer::~WatchdogTimer
() {
12
}
13
14
WatchdogTimer::WatchdogStatus
WatchdogTimer::startTicks
( I32 delayInTicks, WatchdogCb p_callback,
void
* parameter) {
15
return
WATCHDOG_START_ERROR
;
16
}
17
18
WatchdogTimer::WatchdogStatus
WatchdogTimer::startMs
( I32 delayInMs, WatchdogCb p_callback,
void
* parameter) {
19
return
WATCHDOG_START_ERROR
;
20
}
21
22
WatchdogTimer::WatchdogStatus
WatchdogTimer::restart
() {
23
return
WATCHDOG_START_ERROR
;
24
}
25
26
WatchdogTimer::WatchdogStatus
WatchdogTimer::cancel
() {
27
return
WATCHDOG_CANCEL_ERROR
;
28
}
29
30
void
WatchdogTimer::expire
() {
31
FW_ASSERT
(m_cb !=
nullptr
);
32
m_cb(m_parameter);
33
}
34
35
}
36
37
Assert.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition
Assert.hpp:7
WatchdogTimer.hpp
Os::WatchdogTimer::WatchdogTimer
WatchdogTimer()
Definition
WatchdogTimer.cpp:6
Os::WatchdogTimer::startMs
WatchdogStatus startMs(I32 delayInMs, WatchdogCb p_callback, void *parameter)
Definition
WatchdogTimer.cpp:18
Os::WatchdogTimer::startTicks
WatchdogStatus startTicks(I32 delayInTicks, WatchdogCb p_callback, void *parameter)
Definition
WatchdogTimer.cpp:14
Os::WatchdogTimer::WatchdogStatus
WatchdogStatus
Definition
WatchdogTimer.hpp:10
Os::WatchdogTimer::WATCHDOG_CANCEL_ERROR
@ WATCHDOG_CANCEL_ERROR
Timer cancellation failed.
Definition
WatchdogTimer.hpp:14
Os::WatchdogTimer::WATCHDOG_START_ERROR
@ WATCHDOG_START_ERROR
Timer startup failed.
Definition
WatchdogTimer.hpp:13
Os::WatchdogTimer::restart
WatchdogStatus restart()
restart timer with previous value
Definition
WatchdogTimer.cpp:22
Os::WatchdogTimer::cancel
WatchdogStatus cancel()
cancel timer
Definition
WatchdogTimer.cpp:26
Os::WatchdogTimer::~WatchdogTimer
virtual ~WatchdogTimer()
Definition
WatchdogTimer.cpp:11
Os::WatchdogTimer::expire
void expire()
Invoke the callback function with m_parameter.
Definition
WatchdogTimer.cpp:30
Os
Definition
File.cpp:6
Os
Linux
WatchdogTimer.cpp
Generated by
1.9.7