35#include "../../PmicAdcBase.hpp"
50template<
typename CoreType,
typename RegTraits>
114 uint16_t readH8L4(uint8_t regH, uint8_t regL);
128 uint16_t readH8L5(uint8_t regH, uint8_t regL);
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.
Generic ADC implementation for AXP1xx-based PMICs.
CoreType & _core
Reference to I2C communication core.
bool disableChannels(uint32_t mask) override
Disable one or more ADC channels.
AXP1xxAdc(CoreType &core)
Construct ADC interface.
bool enableChannels(uint32_t mask) override
Enable one or more ADC channels.
bool read(Channel ch, float &out) override
Read a single ADC channel value.