F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
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 
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) {
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 
23  return WATCHDOG_START_ERROR;
24  }
25 
27  return WATCHDOG_CANCEL_ERROR;
28  }
29 
31  FW_ASSERT(m_cb != nullptr);
32  m_cb(m_parameter);
33  }
34 
35 }
36 
37 
#define FW_ASSERT(...)
Definition: Assert.hpp:14
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
virtual ~WatchdogTimer()
void expire()
Invoke the callback function with m_parameter.