SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
AXP517Power.hpp
Go to the documentation of this file.
1
31#pragma once
32
33#include "AXP517Core.hpp"
34#include "../../PmicPowerBase.hpp"
35
43{
44public:
50
51 ~AXP517Power() = default;
52
59 bool setMinimumSystemVoltage(uint32_t mv) override;
60
66 uint32_t getMinimumSystemVoltage() const override;
67
73 bool setInputVoltageLimit(uint32_t mv) override;
74
79 uint32_t getInputVoltageLimit() const override;
80
86 bool setInputCurrentLimit(uint32_t mA) override;
87
92 uint32_t getInputCurrentLimit() const override;
93
99 bool enableBoost(bool enable) override;
100
105 bool isBoostEnabled() const override;
106
112 bool setBoostVoltage(uint16_t mv) override;
113
118 uint16_t getBoostVoltage() const override;
119
125 bool enableShipMode(bool enable) override;
126
131 bool isShipModeEnabled() const override;
132
138 bool enableRBFET(bool enable) const;
139
144 bool isRBFETEnabled() const;
145
146private:
147 AXP517Core &_core;
148};
@license MIT License
AXP517 low-level core driver.
AXP517 power-path driver.
~AXP517Power()=default
uint32_t getInputCurrentLimit() const override
Get the input current limit.
bool isRBFETEnabled() const
Check if RBFET is enabled.
bool setBoostVoltage(uint16_t mv) override
Set the boost voltage.
bool enableBoost(bool enable) override
Enable boost functionality.
bool setInputCurrentLimit(uint32_t mA) override
Set the input current limit.
uint32_t getMinimumSystemVoltage() const override
Get the minimum system voltage.
bool isBoostEnabled() const override
Check if boost functionality is enabled.
uint32_t getInputVoltageLimit() const override
Get the input voltage limit.
bool setMinimumSystemVoltage(uint32_t mv) override
Set the minimum system voltage.
bool isShipModeEnabled() const override
Check if ship mode is enabled.
bool setInputVoltageLimit(uint32_t mv) override
Set the input voltage limit.
uint16_t getBoostVoltage() const override
Get the boost voltage.
bool enableRBFET(bool enable) const
Enable or disable the RBFET.
bool enableShipMode(bool enable) override
Enter ship mode.