9 #define ADC_VREF_SEL ((0<<REFS1) | (0<<REFS0) | (0<<ADLAR))
13 #define ADC_INPUTS LAST_ADC_INPUT - FIRST_ADC_INPUT + 1
21 #define ADC_MEAN_VALUES 50
25 #define A1 3.354016e-3
29 #define B1 2.519107e-4
33 #define C1 3.510939e-6
37 #define D1 1.105179e-7
UINT CalcAdcTemp(UCHAR id)
calculate the temperature from specific ADC value in data array, specified by id
void StartAdcConversion(void)
start AD conversion, this will trigger the conversion of all selected channels via the interrupt ...
UINT CalcSupplyVoltage(UCHAR id)
void ProcessNextConversion(void)
checks whether all converted values are processed and starts a new ADC conversion if the latter evalu...
void AdcInit(void)
initialize the adc resource
void SetMux(UCHAR id)
set multiplexer thus switching between channels
ISR(ADC_vect)
ADC interrupt service.