SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AXP2101Watchdog.hpp
Go to the documentation of this file.
1
31#pragma once
32#include "AXP2101Core.hpp"
33#include "../../PmicWatchdogBase.hpp"
34
48{
49public:
50 explicit AXP2101Watchdog(AXP2101Core &core);
51 ~AXP2101Watchdog() = default;
52
58 bool enableWatchdog(bool enable) override;
59
64 bool isWatchdogEnabled() const override;
65
75 bool setWatchdogTimeout(uint16_t timeout_s) override;
76
81 uint16_t getWatchdogTimeout() const override;
82
92 bool resetWatchdog() override;
93
94private:
95 AXP2101Core &_core;
96};
@license MIT License
Core I2C communication layer for the AXP2101 PMIC.
I2C watchdog timer control for the AXP2101 PMIC.
bool enableWatchdog(bool enable) override
Enable or disable the watchdog timer.
bool setWatchdogTimeout(uint16_t timeout_s) override
Set the watchdog timeout duration.
bool isWatchdogEnabled() const override
Check whether the watchdog timer is enabled.
bool resetWatchdog() override
Reset (pet) the watchdog timer.
uint16_t getWatchdogTimeout() const override
Get the current watchdog timeout setting.
~AXP2101Watchdog()=default