Class Watchdog

Class Documentation

class Watchdog

Public Functions

Watchdog(std::shared_ptr<GPIODriverInterface> gpio_driver)

Constructor for Watchdog class.

Parameters:

gpio_driver – Pointer to the GPIODriver object.

Throws:

std::runtime_error – if the Watchdog pin is not configured by GPIODriver or not described in GPIOController gpio_info storage

~Watchdog()

Destructor for Watchdog class. Turns off the watchdog thread.

bool TurnOn()

Turns on the Watchdog.

Throws:

std::runtime_error – if the Watchdog pin is not configured by GPIODriver or not described in GPIOController gpio_info storage

Returns:

True if successful; otherwise, false.

bool TurnOff()
bool IsWatchdogEnabled() const