![]() |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Os/WatchdogTimer.hpp>
Public Types | |
enum | WatchdogStatus { WATCHDOG_OK, WATCHDOG_INIT_ERROR, WATCHDOG_START_ERROR, WATCHDOG_CANCEL_ERROR } |
typedef void(* | WatchdogCb) (void *) |
Public Member Functions | |
WatchdogTimer () | |
virtual | ~WatchdogTimer () |
WatchdogStatus | startTicks (I32 delayInTicks, WatchdogCb p_callback, void *parameter) |
WatchdogStatus | startMs (I32 delayInMs, WatchdogCb p_callback, void *parameter) |
WatchdogStatus | restart (void) |
restart timer with previous value More... | |
WatchdogStatus | cancel (void) |
cancel timer More... | |
Definition at line 7 of file WatchdogTimer.hpp.
typedef void(* Os::WatchdogTimer::WatchdogCb) (void *) |
Definition at line 17 of file WatchdogTimer.hpp.
Enumerator | |
---|---|
WATCHDOG_OK | Call was successful. |
WATCHDOG_INIT_ERROR | Timer initialization failed. |
WATCHDOG_START_ERROR | Timer startup failed. |
WATCHDOG_CANCEL_ERROR | Timer cancellation failed. |
Definition at line 10 of file WatchdogTimer.hpp.
Os::WatchdogTimer::WatchdogTimer | ( | ) |
Definition at line 5 of file WatchdogTimer.cpp.
|
virtual |
Definition at line 10 of file WatchdogTimer.cpp.
WatchdogTimer::WatchdogStatus Os::WatchdogTimer::cancel | ( | void | ) |
cancel timer
Definition at line 25 of file WatchdogTimer.cpp.
WatchdogTimer::WatchdogStatus Os::WatchdogTimer::restart | ( | void | ) |
restart timer with previous value
Definition at line 21 of file WatchdogTimer.cpp.
WatchdogTimer::WatchdogStatus Os::WatchdogTimer::startMs | ( | I32 | delayInMs, |
WatchdogCb | p_callback, | ||
void * | parameter | ||
) |
delayInMs | number of ms to delay. |
p_callback | routine to call on time-out |
parameter | parameter with which to call routine |
Definition at line 17 of file WatchdogTimer.cpp.
WatchdogTimer::WatchdogStatus Os::WatchdogTimer::startTicks | ( | I32 | delayInTicks, |
WatchdogCb | p_callback, | ||
void * | parameter | ||
) |
delayInTicks | number of ticks to delay. OS/timing dependent |
p_callback | routine to call on time-out |
parameter | parameter with which to call routine |
Definition at line 13 of file WatchdogTimer.cpp.