33#include "../../PmicChannelBase.hpp"
109 bool setVoltage(uint8_t channel, uint16_t mV)
override;
116 uint16_t
getVoltage(uint8_t channel)
override;
122 uint8_t
count()
const override;
137 bool isDCDC(uint8_t channel)
const
Power output channel (DCDC / LDO) control for the AXP2101 PMIC.
static constexpr uint8_t CH_ALDO4
static constexpr uint8_t CH_ALDO1
uint8_t count() const override
Get the total number of available power channels.
Info getInfo(uint8_t channel) const override
Get information about a specific power channel.
static constexpr uint8_t CH_DCDC1
static constexpr uint8_t CH_CPUSLDO
static constexpr uint8_t CH_ALDO3
static constexpr uint8_t CH_DCDC2
static constexpr uint8_t DCDC_COUNT
Number of DCDC converters.
static constexpr uint8_t CH_DCDC5
static constexpr uint8_t CH_ALDO2
bool enable(uint8_t channel, bool enable) override
Enable or disable a power output channel.
uint16_t getVoltage(uint8_t channel) override
Get the current output voltage setting for a channel.
static constexpr uint8_t CH_DCDC3
static constexpr uint8_t CH_DLDO2
~AXP2101Channel()=default
static constexpr uint8_t CH_BLDO1
static constexpr uint8_t LDO_COUNT
Number of LDO regulators.
static constexpr uint8_t CH_BLDO2
static constexpr uint8_t CH_DCDC4
bool setVoltage(uint8_t channel, uint16_t mV) override
Set the output voltage for a DCDC or LDO channel.
static constexpr uint8_t CH_DLDO1
bool isEnabled(uint8_t channel) override
Check whether a power output channel is enabled.
static constexpr uint8_t CHANNEL_COUNT
Total number of power channels.
Core I2C communication layer for the AXP2101 PMIC.
PMIC power output channel base interface.
Static metadata for a single power output channel.