330 for (i = 0; i < length; i++) {
421 ADC_IEN(adc) &= ~ADC_IEN_SINGLEOF;
439 ADC_IEN(adc) &= ~ADC_IEN_SINGLE;
457 ADC_IEN(adc) &= ~ADC_IEN_SCANOF;
#define ADC_CTRL_TIMEBASE(v)
#define ADC_SCANCTRL_INPUTSEL_MASK
#define ADC_CAL_SCANGAIN_MASK
#define ADC_CTRL_TAILGATE
#define ADC_CAL_SCANOFF_MASK
#define ADC_SINGLECTRL_ADJ
#define ADC_SCANCTRL_INPUTSEL_SHIFT
#define ADC_SINGLECTRL_DIFF
#define ADC_SCANCTRL_PRSEN
#define ADC_SINGLEDATAP(base)
#define ADC_SINGLECTRL(base)
#define ADC_SCANDATAP(base)
#define ADC_SINGLECTRL_REP
#define ADC_SINGLECTRL_PRSEN
#define ADC_SCANDATA(base)
#define ADC_SCANCTRL_DIFF
#define ADC_CMD_SINGLESTART
#define ADC_CAL_SINGLEGAIN_MASK
#define ADC_CAL_SINGLEOFF_MASK
#define ADC_CMD_SINGLESTOP
#define ADC_CTRL_PRESC(v)
#define ADC_CMD_SCANSTART
#define ADC_SINGLEDATA(base)
#define ADC_SINGLECTRL_INPUTSEL(v)
#define ADC_SINGLECTRL_PRSSEL_PRSCHx(x)
#define ADC_SCANCTRL_PRSSEL_PRSCHx(x)
#define ADC_SCANCTRL(base)
void adc_disable_tailgating(uint32_t adc)
Disable tail gating.
void adc_single_start(uint32_t adc)
Start ADC in single acquisition.
uint32_t adc_single_data_peak(uint32_t adc)
Get result from last single conversion (peak) Reading result using this function will not clear SINGL...
void adc_set_scan_channel(uint32_t adc, uint8_t length, uint8_t channel[])
Set scan channel list.
void adc_enable_scan_repeat_conv(uint32_t adc)
Enable scan repeated conversion.
void adc_set_single_result_overflow_flag(uint32_t adc)
Set single result overflow flag.
void adc_set_scan_right_aligned(uint32_t adc)
Set scan right aligned output.
void adc_enable_scan_prs_trigger(uint32_t adc)
Enable scan PRS Triggering.
void adc_clear_single_result_overflow_flag(uint32_t adc)
Clear single result overflow flag.
void adc_disable_scan_result_overflow_interrupt(uint32_t adc)
Disable scan result overflow interrupt.
bool adc_get_single_conversion_complete_flag(uint32_t adc)
Get single conversion complete flag.
void adc_set_scan_result_overflow_flag(uint32_t adc)
Set scan result overflow flag.
uint32_t adc_single_data(uint32_t adc)
Get result from last scan conversion.
void adc_set_warm_up_mode(uint32_t adc, uint32_t warmupmode)
Set warm up mode.
void adc_set_single_differential(uint32_t adc)
Set single differential conversion.
void adc_enable_single_prs_trigger(uint32_t adc)
Enable single PRS Triggering.
void adc_scan_stop(uint32_t adc)
Stop ADC in scan acquisition.
void adc_set_scan_single_ended(uint32_t adc)
Set scan single ended conversion.
void adc_set_single_acquisition_cycle(uint32_t adc, uint32_t at)
Set single acquisition cycle.
void adc_disable_single_prs_trigger(uint32_t adc)
Disable single PRS Triggering.
void adc_disable_single_repeat_conv(uint32_t adc)
Disable single repeated conversion.
bool adc_get_scan_conversion_complete_flag(uint32_t adc)
Get scan conversion complete flag.
void adc_set_oversampling(uint32_t adc, uint32_t oversamp)
Set ADC over sampling.
void adc_enable_scan_conversion_complete_interrupt(uint32_t adc)
Disable scan conversion complete interrupt.
bool adc_get_scan_result_overflow_flag(uint32_t adc)
Get scan result overflow flag.
void adc_enable_tailgating(uint32_t adc)
Enable tail gating.
void adc_disable_scan_repeat_conv(uint32_t adc)
Disable scan repeated conversion.
void adc_set_single_channel(uint32_t adc, uint8_t ch)
Set single channel.
void adc_enable_single_conversion_complete_interrupt(uint32_t adc)
Enable single conversion complete interrupt.
void adc_set_calibration_single_offset(uint32_t adc, uint8_t single_offset)
Set ADC single offset calibration.
void adc_disable_scan_conversion_complete_interrupt(uint32_t adc)
Disable scan conversion complete interrupt.
void adc_set_single_prs_trigger(uint32_t adc, uint8_t prssel)
Set single PRS trigger.
void adc_set_single_conversion_complete_flag(uint32_t adc)
Set single conversion complete flag.
void adc_set_clock_prescaler(uint32_t adc, uint8_t factor)
Clock division factor.
void adc_set_scan_reference(uint32_t adc, uint32_t ref)
Set scan reference for acquisition.
void adc_set_single_right_aligned(uint32_t adc)
Set single right aligned output.
void adc_set_scan_conversion_complete_flag(uint32_t adc)
Set scan conversion complete flag.
bool adc_get_single_result_overflow_flag(uint32_t adc)
Get single result overflow flag.
void adc_enable_single_repeat_conv(uint32_t adc)
Enable single channel repeated conversion.
void adc_scan_start(uint32_t adc)
Start ADC in scan acquisition.
void adc_set_scan_acquisition_cycle(uint32_t adc, uint32_t at)
Set scan acquisition cycle.
void adc_enable_single_result_overflow_interrupt(uint32_t adc)
Enable single result overflow interrupt.
void adc_set_calibration_single_gain(uint32_t adc, uint8_t single_gain)
Set ADC single gain calibration.
void adc_set_scan_differential(uint32_t adc)
Set scan differential conversion.
void adc_set_scan_left_aligned(uint32_t adc)
Set scan left aligned output.
void adc_set_scan_resolution(uint32_t adc, uint32_t res)
Set scan resolution of conversion.
void adc_single_stop(uint32_t adc)
Stop ADC in single acquisition.
void adc_set_warm_up(uint32_t adc, uint8_t clocks)
Set ADC warm up.
void adc_set_lowpass_filter(uint32_t adc, uint32_t lpfmode)
Set low pass filter mode.
void adc_set_single_resolution(uint32_t adc, uint32_t res)
Set single resolution of conversion.
void adc_set_single_single_ended(uint32_t adc)
Set single single-ended conversion.
void adc_set_single_reference(uint32_t adc, uint32_t ref)
Set single reference for acquisition.
void adc_set_single_left_aligned(uint32_t adc)
Set single left aligned output.
void adc_set_calibration_scan_gain(uint32_t adc, uint8_t scan_gain)
Set ADC scan gain calibration.
void adc_enable_scan_result_overflow_interrupt(uint32_t adc)
Enable scan result overflow interrupt.
void adc_disable_scan_prs_trigger(uint32_t adc)
Disable scan PRS Triggering.
void adc_disable_single_result_overflow_interrupt(uint32_t adc)
Disable single result overflow interrupt.
void adc_set_scan_prs_trigger(uint32_t adc, uint8_t prssel)
Set scan PRS trigger.
void adc_clear_scan_conversion_complete_flag(uint32_t adc)
Clear scan conversion complete flag.
void adc_clear_scan_result_overflow_flag(uint32_t adc)
Clear scan result overflow flag.
void adc_disable_single_conversion_complete_interrupt(uint32_t adc)
Disable single conversion complete interrupt.
uint32_t adc_scan_data_peak(uint32_t adc)
Get result from last scan conversion (peak) Reading result using this function will not clear SCANDV ...
void adc_clear_single_conversion_complete_flag(uint32_t adc)
Clear single conversion complete flag.
void adc_set_calibration_scan_offset(uint32_t adc, uint8_t scan_offset)
Set ADC scan offset calibration.
uint32_t adc_scan_data(uint32_t adc)
Get result from last scan conversion.