SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
PmicWatchdogBase.hpp
Go to the documentation of this file.
1
40#pragma once
41
42#include <stdint.h>
43
45{
46public:
47
51 virtual ~PmicWatchdogBase() = default;
52
62 virtual bool enableWatchdog(bool enable) = 0;
63
68 virtual bool isWatchdogEnabled() const = 0;
69
83 virtual bool setWatchdogTimeout(uint16_t timeout_s) = 0;
84
89 virtual uint16_t getWatchdogTimeout() const = 0;
90
102 virtual bool resetWatchdog() = 0;
103
104};
virtual bool isWatchdogEnabled() const =0
Check if watchdog is enabled.
virtual uint16_t getWatchdogTimeout() const =0
Get the current watchdog timeout setting.
virtual bool setWatchdogTimeout(uint16_t timeout_s)=0
Set the watchdog timeout duration.
virtual bool enableWatchdog(bool enable)=0
Enable or disable the watchdog timer.
virtual bool resetWatchdog()=0
Reset the watchdog timer (feed the watchdog).
virtual ~PmicWatchdogBase()=default
Virtual destructor.