#include <SimpleWatchdog.h>
Inherits openjaus::system::AbstractWatchdog.
◆ WatchdogStateEnum
Enumerator |
---|
WATCHDOG_NOT_STARTED | |
WATCHDOG_NORMAL | |
WATCHDOG_TIMEOUT | |
◆ SimpleWatchdog()
openjaus::system::SimpleWatchdog::SimpleWatchdog |
( |
uint16 |
timeout_ms | ) |
|
◆ ~SimpleWatchdog()
openjaus::system::SimpleWatchdog::~SimpleWatchdog |
( |
| ) |
|
|
virtual |
◆ cancel()
void openjaus::system::SimpleWatchdog::cancel |
( |
| ) |
|
|
virtual |
◆ handleTimeoutInterval()
void openjaus::system::SimpleWatchdog::handleTimeoutInterval |
( |
system::Timer * |
timer | ) |
|
|
private |
◆ reset()
void openjaus::system::SimpleWatchdog::reset |
( |
| ) |
|
|
virtual |
Resets the watchdog such that it does not timeout. If the watchdog is not reset within the drive timeout interval, the watched dog will move to the timeout state and the timeout function will be executed.
Implements openjaus::system::WatchdogInterface.
◆ resetInternal()
void openjaus::system::SimpleWatchdog::resetInternal |
( |
| ) |
|
|
private |
◆ start()
void openjaus::system::SimpleWatchdog::start |
( |
| ) |
|
|
virtual |
Starts the watchdog. A watchdog can only be started once. It can be cancelled after it is started but it cannot be restarted if it is cancelled. This method gives more flexibility over when a watchdog is started.
Implements openjaus::system::WatchdogInterface.
◆ startTimeoutTimer()
void openjaus::system::SimpleWatchdog::startTimeoutTimer |
( |
| ) |
|
|
private |
◆ timedOut()
bool openjaus::system::SimpleWatchdog::timedOut |
( |
| ) |
const |
|
virtual |
Specifies if the watchdog has timed out. This is set to true when the reset interval has not been called within the drive timeout interval. If timedOut is true, reset must be called at (or faster than) the drive timeout interval for the length of time specified by the recovery time interval before the timeout will be cleared.
Implements openjaus::system::WatchdogInterface.
◆ mutex
◆ resetCount
unsigned int openjaus::system::SimpleWatchdog::resetCount |
|
private |
◆ state
◆ timeout_ms
uint16 openjaus::system::SimpleWatchdog::timeout_ms |
|
private |
◆ timeoutTimer
The documentation for this class was generated from the following files: