43#include "../axp1xx/AXP1xxAdcTraits.hpp"
109 static uint16_t readRegisterH8L4(
AXP202Core &core, uint8_t regH, uint8_t regL);
Channel
ADC channel bitmask.
static bool hasSpecialEnablement(PmicAdcBase::Channel ch)
AXP202 does not require special channel enablement.
static bool enableSpecialChannel(AXP202Core &core, PmicAdcBase::Channel ch)
No special enablement needed for AXP202.
static bool disableSpecialChannel(AXP202Core &core, PmicAdcBase::Channel ch)
No special disablement needed for AXP202.
Base traits class for AXP1xxAdc template specialization.
static constexpr uint8_t ADC_EN2_ADDR
ADC_EN2 register address.
static bool readChannel(CoreType &core, PmicAdcBase::Channel ch, float &out)
Main ADC channel reading implementation.
static constexpr uint8_t ADC_EN1_ADDR
ADC_EN1 register address.
static uint32_t getChannelMask(PmicAdcBase::Channel ch)
Map a Channel enum to its hardware enable mask.
static constexpr uint8_t ADC_EN2
static constexpr uint8_t ADC_EN1