32#include "../../PmicAdcBase.hpp"
114 float SteinhartB = 2.38e-4f,
115 float SteinhartC = 8.5e-8f);
ADC control for the AXP2101 PMIC.
static constexpr uint8_t ADC_SYSTEM_VOLTAGE_HW
static constexpr uint8_t ADC_BAT_VOLTAGE_HW
bool disableChannels(uint32_t mask) override
Disable one or more ADC channels (REG 0x30).
float getTsTemperature(float SteinhartA=1.126e-3f, float SteinhartB=2.38e-4f, float SteinhartC=8.5e-8f)
Read TS pin temperature using Steinhart-Hart equation.
bool enableChannels(uint32_t mask) override
Enable one or more ADC channels.
static constexpr uint8_t ADC_TS_PIN_HW
bool read(Channel ch, float &out) override
Read an ADC channel value.
static constexpr uint8_t ADC_VBUS_VOLTAGE_HW
static constexpr uint8_t ADC_DIE_TEMP_HW
Core I2C communication layer for the AXP2101 PMIC.
bool disableChannels(Channel mask)
Disable one or more ADC channels by Channel enum.
bool enableChannels(Channel mask)
Enable one or more ADC channels by Channel enum.
Channel
ADC channel bitmask.