67 enum class Type : uint8_t {
PMIC power output channel base interface.
Type
Regulator type classification.
@ LDO
Linear low-dropout regulator.
@ DCDC
Switching buck/boost converter.
virtual bool isEnabled(uint8_t channel)=0
Check whether a power output channel is currently enabled.
virtual ~PmicChannelBase()=default
Virtual destructor.
virtual uint16_t getVoltage(uint8_t channel)=0
Get the current output voltage of a channel.
virtual bool setVoltage(uint8_t channel, uint16_t mV)=0
Set the output voltage of a channel.
virtual uint8_t count() const =0
Get the number of power output channels available on this PMIC.
virtual bool enable(uint8_t channel, bool enable)=0
Enable or disable a power output channel.
virtual Info getInfo(uint8_t channel) const =0
Get static metadata for a specific channel.
Static metadata for a single power output channel.
const char * name
Name (e.g. "DCDC1")
uint16_t stepMillivolt
Voltage adjustment step in mV.
uint16_t maxMillivolt
Maximum output voltage in mV.
uint8_t channel
Channel index (0-based)
uint16_t minMillivolt
Minimum output voltage in mV.
Type type
Regulator type (DCDC/LDO)