21 #ifndef COSA_ANALOG_COMPARATOR_HH 22 #define COSA_ANALOG_COMPARATOR_HH 38 } __attribute__((packed));
100 static const uint8_t
AIN1 = 254;
101 static const uint8_t
VBG = 255;
static const uint8_t VBG
Bandgap voltage reference.
uint8_t m_pin
Analog channel.
static const uint8_t AIN1
Default reference voltage.
virtual void on_interrupt(uint16_t arg=0)
static AnalogComparator * s_comparator
Current comparator.
friend void ANALOG_COMP_vect(void)
AnalogComparator(Board::AnalogPin pin, Mode mode=ON_TOGGLE_MODE)
AnalogComparator(Mode mode=ON_TOGGLE_MODE, bool bandgap=false)