98 bool conversionFinished =
true;
102 adcStartConversion(adcREG1, adcGROUP1);
107 conversionFinished =
true;
109 conversionFinished =
false;
111 if (conversionFinished ==
true) {
static ADC_STATE_e adc_conversionState
describes the current state of the conversion
void ADC_Control(void)
controls ADC measurement sequence.
static adcData_t adc1RawVoltages[ADC_ADC1_MAX_NR_CHANNELS]
static float ADC_ConvertVoltage(float adcValue_mV)
converts reading from ADC to a voltage in mV.
static DATA_BLOCK_ADC_VOLTAGE_s adc1Voltages
Headers for the driver for the ADC module.
@ ADC_WAIT_CONVERSION_FINISHED
@ ADC_CONVERSION_FINISHED
#define ADC_CONVERSION_ENDDBIT
#define ADC_CONV_FACTOR_12BIT
#define DATA_WRITE_DATA(...)
@ DATA_BLOCK_ID_ADC_VOLTAGE
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define FAS_TRAP
Define that evaluates to essential boolean false thus tripping an assert.
#define ADC_ADC1_MAX_NR_CHANNELS
maximum number of channels measured by the ADC1
float adc1ConvertedVoltages_mV[ADC_ADC1_MAX_NR_CHANNELS]
DATA_BLOCK_HEADER_s header