101 bool conversionFinished =
true;
105 adcStartConversion(adcREG1, adcGROUP1);
110 conversionFinished =
true;
112 conversionFinished =
false;
114 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 adc_adc1RawVoltages[MCU_ADC1_MAX_NR_CHANNELS]
static DATA_BLOCK_ADC_VOLTAGE_s adc_adc1Voltages
static float ADC_ConvertVoltage(uint16_t adcCounts)
converts reading from ADC to a voltage in mV.
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 MCU_ADC1_MAX_NR_CHANNELS
maximum number of channels measured by the ADC1
DATA_BLOCK_HEADER_s header
float adc1ConvertedVoltages_mV[MCU_ADC1_MAX_NR_CHANNELS]