184
differential channels (src-diff)
Definition: avr_adc.h:67
avr_adts_type
ADC trigger sources.
Definition: avr_adc.h:87
avr_regbit_t aden
ADC Enabled.
Definition: avr_adc.h:121
struct avr_adc_t avr_adc_t
Definition: avr_adc.h:104
avr_regbit_t adps[3]
Prescaler bits. Note that it's a frequency bit shift.
Definition: avr_adc.h:125
sends a avr_adc_mux_t
Definition: avr_adc.h:54
Definition: avr_adc.h:102
Nothing. return 0
Definition: avr_adc.h:64
uint8_t read_status
marked one when adcl is read
Definition: avr_adc.h:146
avr_t * avr
Definition: run_avr.c:54
unsigned long gain
Definition: avr_adc.h:74
input IRQ values. Values are /always/ volts * 1000 (millivolts)
Definition: avr_adc.h:47
uint8_t adts_mode
the extracted ADTS mode
Definition: avr_adc.h:132
default mode
Definition: avr_adc.h:80
reference voltage (in src * 100)
Definition: avr_adc.h:69
uint16_t adc_values[8]
current values on the ADCs
Definition: avr_adc.h:143
Normal ADC pin reading
Definition: avr_adc.h:66
void avr_adc_init(avr_t *avr, avr_adc_t *port)
Definition: avr_adc.c:360
interrupt vector for the IO modules
Definition: sim_interrupts.h:37
Nothing. return something random
Definition: avr_adc.h:65
This 'structure' is a packed representation of an IO register 'bit' (or consecutive bits)...
Definition: sim_avr_types.h:47
internal temp sensor
Definition: avr_adc.h:68
uint8_t r_adcsrb
ADC Control and Status Register B.
Definition: avr_adc.h:129
avr_regbit_t adate
ADC Auto Trigger Enable.
Definition: avr_adc.h:123
avr_adts_type adts_op[16]
ADTS type.
Definition: avr_adc.h:131
uint8_t r_adch
Data Registers.
Definition: avr_adc.h:127
avr_regbit_t mux[6]
Definition: avr_adc.h:114
uint8_t first
Definition: avr_adc.h:145
avr_regbit_t adsc
ADC Start Conversion.
Definition: avr_adc.h:122
avr_regbit_t adlar
left/right adjustment bit
Definition: avr_adc.h:118
uint8_t r_adcsra
ADC Control and Status Register A.
Definition: avr_adc.h:120
avr_adc_mux_t muxmode[64]
maximum 6 bits of mux modes
Definition: avr_adc.h:142
uint8_t r_adcl
Definition: avr_adc.h:127
Definition: avr_adc.h:105
Definition: avr_adc.h:103
unsigned long kind
Definition: avr_adc.h:74
avr_io_t io
Definition: avr_adc.h:110
avr_regbit_t ipr
Input Polarity Reversal (tinyx5 have it)
Definition: avr_adc.h:134
struct avr_adc_mux_t avr_adc_mux_t
uint8_t r_admux
Definition: avr_adc.h:112
unsigned long diff
Definition: avr_adc.h:74
avr_regbit_t bin
Bipolar Input Mode (tinyx5 have it)
Definition: avr_adc.h:133
Definition: avr_adc.h:108
Definition: avr_adc.h:101
avr_regbit_t adts[4]
Timing Source.
Definition: avr_adc.h:130
avr_int_vector_t adc
use ADIF and ADIE bits
Definition: avr_adc.h:137
Definition: avr_adc.h:100
unsigned long src
Definition: avr_adc.h:74
Main AVR instance.
Definition: sim_avr.h:142
IO module base struct Modules uses that as their first member in their own struct.
Definition: sim_io.h:42
uint16_t ref_values[7]
ADC_VREF_*.
Definition: avr_adc.h:116
uint16_t temp
temp sensor reading
Definition: avr_adc.h:144
avr_regbit_t ref[3]
reference voltages bits
Definition: avr_adc.h:115