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.
2#include <Fw/Types/Assert.hpp>
3
4namespace Os {
5
7 : m_handle(0),m_cb(nullptr),m_parameter(nullptr),m_timerTicks(0),m_timerMs(0)
8 {
9 }
10
12 }
13
14 WatchdogTimer::WatchdogStatus WatchdogTimer::startTicks( I32 delayInTicks, WatchdogCb p_callback, void* parameter) {
16 }
17
18 WatchdogTimer::WatchdogStatus WatchdogTimer::startMs( I32 delayInMs, WatchdogCb p_callback, void* parameter) {
20 }
21
24 }
25
28 }
29
31 FW_ASSERT(m_cb != nullptr);
32 m_cb(m_parameter);
33 }
34
35}
36
37
#define FW_ASSERT(...)
Definition Assert.hpp:7
WatchdogStatus startMs(I32 delayInMs, WatchdogCb p_callback, void *parameter)
WatchdogStatus startTicks(I32 delayInTicks, WatchdogCb p_callback, void *parameter)
@ WATCHDOG_CANCEL_ERROR
Timer cancellation failed.
@ WATCHDOG_START_ERROR
Timer startup failed.
WatchdogStatus restart()
restart timer with previous value
WatchdogStatus cancel()
cancel timer
void expire()
Invoke the callback function with m_parameter.
Definition File.cpp:6