Class Watchdog
Defined in File gpio_controller.hpp
Class Documentation
-
class Watchdog
Public Functions
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
-
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