33#include "../../PmicAdcBase.hpp"
52template<
typename CoreType>
Channel
ADC channel bitmask.
Base traits class for AXP1xxAdc template specialization.
static constexpr uint8_t ADC_EN2_ADDR
ADC_EN2 register address.
static bool disableSpecialChannel(CoreType &core, PmicAdcBase::Channel ch)
Perform special channel disablement.
static bool enableSpecialChannel(CoreType &core, PmicAdcBase::Channel ch)
Perform special channel enablement.
static bool hasSpecialEnablement(PmicAdcBase::Channel ch)
Check if a channel requires special enablement logic.
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.