FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
analog Namespace Reference

Defines all API to manipulate analog input/output. More...

Classes

class  AnalogComparator
 Handler of the Analog Comparator feature. More...
 
class  AnalogInput
 API that handles a given analog input pin of the target MCU. More...
 
class  PowerVoltage
 API that uses bandgap feature to calculate current voltage fed to the MCU. More...
 
class  PWMOutput
 Construct a new handler for a PWM output pin. More...
 

Enumerations

enum class  ComparatorInterrupt : uint8_t {
  NONE = bits::BV8(ACI) ,
  TOGGLE = bits::BV8(ACI, ACIE) ,
  FALLING_EDGE = bits::BV8(ACI, ACIE, ACIS1) ,
  RISING_EDGE = bits::BV8(ACI, ACIE, ACIS1, ACIS0)
}
 Kind of change that will trigger an Analog Comparator Interrupt. More...
 

Detailed Description

Defines all API to manipulate analog input/output.

Enumeration Type Documentation

◆ ComparatorInterrupt

enum class analog::ComparatorInterrupt : uint8_t
strong

Kind of change that will trigger an Analog Comparator Interrupt.

Actual uint8_t value matches the related mask for ACSR.

Enumerator
NONE 

No interrupt will be generated by the Anolog Comparator.

TOGGLE 

An interrupt is generated everytime the Analog Comparator output changes.

FALLING_EDGE 

An interrupt is generated everytime the Analog Comparator output changes from 1 to 0.

RISING_EDGE 

An interrupt is generated everytime the Analog Comparator output changes from 0 to 1.

Definition at line 83 of file analog_comparator.h.