ADC Namespace Reference

yasimavr: ADC Namespace Reference
yasimavr
Loading...
Searching...
No Matches

Generic ADC definitions. More...

Classes

struct  channel_config_t
 

Enumerations

enum  Channel {
  Channel_SingleEnded , Channel_Differential , Channel_Zero , Channel_IntRef ,
  Channel_Temperature , Channel_AcompRef
}
 
enum  SignalId { Signal_ConversionStarted , Signal_AboutToSample , Signal_ConversionComplete }
 

Detailed Description

Generic ADC definitions.

Definition of enumerations, configuration structures and signal Ids used for ADC models, common to all architectures.

Enumeration Type Documentation

◆ Channel

Enum definition for the ADC channel configuration

Enumerator
Channel_SingleEnded 

Single-ended analog input.

Channel_Differential 

Differential analog input.

Channel_Zero 

Ground reference channel.

Channel_IntRef 

Internal bandgap reference voltage.

Channel_Temperature 

Internal temperature sensor voltage.

Channel_AcompRef 

Analog comparator reference input (used on ATMega0 and ATMega1 series)

◆ SignalId

Enumerator
Signal_ConversionStarted 

Raised at the start of a conversion.

Signal_AboutToSample 

Raised just before the ADC is sampling the inputs. Last chance to set the analog values for it to be taken into account by the current conversion.

Signal_ConversionComplete 

Raised when the conversion is complete and the CPU is notified that the conversion result is ready.