SimAVR
AVR Simulator
avr_adc_t Struct Reference

#include <avr_adc.h>

Collaboration diagram for avr_adc_t:

Data Fields

avr_io_t io
 
uint8_t r_admux
 
avr_regbit_t mux [6]
 
avr_regbit_t ref [3]
 reference voltages bits More...
 
uint16_t ref_values [7]
 ADC_VREF_*. More...
 
avr_regbit_t adlar
 left/right adjustment bit More...
 
uint8_t r_adcsra
 ADC Control and Status Register A. More...
 
avr_regbit_t aden
 ADC Enabled. More...
 
avr_regbit_t adsc
 ADC Start Conversion. More...
 
avr_regbit_t adate
 ADC Auto Trigger Enable. More...
 
avr_regbit_t adps [3]
 Prescaler bits. Note that it's a frequency bit shift. More...
 
uint8_t r_adcl
 
uint8_t r_adch
 Data Registers. More...
 
uint8_t r_adcsrb
 ADC Control and Status Register B. More...
 
avr_regbit_t adts [4]
 Timing Source. More...
 
avr_adts_type adts_op [16]
 ADTS type. More...
 
uint8_t adts_mode
 the extracted ADTS mode More...
 
avr_regbit_t bin
 Bipolar Input Mode (tinyx5 have it) More...
 
avr_regbit_t ipr
 Input Polarity Reversal (tinyx5 have it) More...
 
avr_int_vector_t adc
 use ADIF and ADIE bits More...
 
avr_adc_mux_t muxmode [64]
 maximum 6 bits of mux modes More...
 
uint16_t adc_values [8]
 current values on the ADCs More...
 
uint16_t temp
 temp sensor reading More...
 
uint8_t first
 
uint8_t read_status
 marked one when adcl is read More...
 

Field Documentation

avr_regbit_t adate

ADC Auto Trigger Enable.

use ADIF and ADIE bits

uint16_t adc_values[8]

current values on the ADCs

ADC Enabled.

avr_regbit_t adlar

left/right adjustment bit

avr_regbit_t adps[3]

Prescaler bits. Note that it's a frequency bit shift.

ADC Start Conversion.

avr_regbit_t adts[4]

Timing Source.

uint8_t adts_mode

the extracted ADTS mode

avr_adts_type adts_op[16]

ADTS type.

Bipolar Input Mode (tinyx5 have it)

uint8_t first

Input Polarity Reversal (tinyx5 have it)

avr_regbit_t mux[6]
avr_adc_mux_t muxmode[64]

maximum 6 bits of mux modes

uint8_t r_adch

Data Registers.

uint8_t r_adcl
uint8_t r_adcsra

ADC Control and Status Register A.

uint8_t r_adcsrb

ADC Control and Status Register B.

uint8_t r_admux
uint8_t read_status

marked one when adcl is read

avr_regbit_t ref[3]

reference voltages bits

uint16_t ref_values[7]

ADC_VREF_*.

uint16_t temp

temp sensor reading


The documentation for this struct was generated from the following file: