SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
BQ25896Power.hpp
Go to the documentation of this file.
1
79#pragma once
80
81#include "BQ25896Core.hpp"
82#include "../../PmicPowerBase.hpp"
83#include "../../PmicWatchdogBase.hpp"
84
86{
87public:
92 explicit BQ25896Power(BQ25896Core &core);
93
94 ~BQ25896Power() = default;
95
113 bool setMinimumSystemVoltage(uint32_t mv) override;
114
122 uint32_t getMinimumSystemVoltage() const override;
123
149 bool setInputVoltageLimit(uint32_t mv) override;
150
158 uint32_t getInputVoltageLimit() const override;
159
183 bool setInputCurrentLimit(uint32_t mA) override;
184
192 uint32_t getInputCurrentLimit() const override;
193
219 bool enableBoost(bool enable) override;
220
229 bool isBoostEnabled() const override;
230
251 bool setBoostVoltage(uint16_t mv) override;
252
260 uint16_t getBoostVoltage() const override;
261
282 bool enableShipMode(bool enable) override;
283
294 bool isShipModeEnabled() const override;
295
314 bool enableWatchdog(bool enable) override;
315
321 bool isWatchdogEnabled() const override;
322
337 bool setWatchdogTimeout(uint16_t timeout_s) override;
338
344 uint16_t getWatchdogTimeout() const override;
345
361 bool resetWatchdog() override;
362
363private:
364 BQ25896Core &_core;
365};
@license MIT License
bool isBoostEnabled() const override
Check if boost mode is enabled.
bool setBoostVoltage(uint16_t mv) override
Set boost output voltage.
bool enableWatchdog(bool enable) override
Enable or disable the I2C watchdog timer.
bool isWatchdogEnabled() const override
Check if watchdog is enabled.
bool enableShipMode(bool enable) override
Enable or disable ship mode.
bool setMinimumSystemVoltage(uint32_t mv) override
Set minimum system voltage.
bool setInputVoltageLimit(uint32_t mv) override
Set input voltage limit (VINDPM)
bool setInputCurrentLimit(uint32_t mA) override
Set input current limit.
bool enableBoost(bool enable) override
Enable or disable OTG (boost) mode.
uint32_t getInputVoltageLimit() const override
Get input voltage limit.
~BQ25896Power()=default
uint16_t getWatchdogTimeout() const override
Get the current watchdog timeout setting.
uint16_t getBoostVoltage() const override
Get boost output voltage.
uint32_t getInputCurrentLimit() const override
Get input current limit.
uint32_t getMinimumSystemVoltage() const override
Get minimum system voltage.
bool isShipModeEnabled() const override
Check if ship mode is enabled.
bool resetWatchdog() override
Reset the watchdog timer (feed the watchdog)
bool setWatchdogTimeout(uint16_t timeout_s) override
Set the watchdog timeout duration.