59 return static_cast< uint8_t
>(ch);
71 :
static_cast< uint8_t
>(1U <<
BIT_REFS0);
What config.h is written with: its types, constants and helpers.
constexpr Channel channelAfterNext(const Channel ch)
The channel two steps after another one in the chain V1, I1, V2, I2, V3, I3.
constexpr Channel channelConverted(const uint8_t round)
The channel round round converts, once the pipeline is full.
constexpr uint8_t admuxOf(const PcbVersion board, const Channel ch)
The ADMUX value that converts a channel: reference, left-adjusted result, analog input.
constexpr uint8_t BIT_REFS0
constexpr uint8_t refBits(const PcbVersion board)
The reference bits of ADMUX on a board.
constexpr uint8_t BIT_REFS1
constexpr uint8_t BIT_ADLAR
constexpr uint8_t admuxWrittenAfter(const PcbVersion board, const Channel converted)
The ADMUX value the interrupt writes after the conversion of a channel.
constexpr uint8_t NO_OF_CONVERSIONS
constexpr uint8_t pinOf(const Channel ch)
The analog input of a channel (A0 = 0).