libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
adc_common.c File Reference
Include dependency graph for adc_common.c:

Go to the source code of this file.

Functions

void adc_set_oversampling (uint32_t adc, uint32_t oversamp)
 Set ADC over sampling. More...
 
void adc_set_warm_up (uint32_t adc, uint8_t clocks)
 Set ADC warm up. More...
 
void adc_set_clock_prescaler (uint32_t adc, uint8_t factor)
 Clock division factor. More...
 
void adc_set_lowpass_filter (uint32_t adc, uint32_t lpfmode)
 Set low pass filter mode. More...
 
void adc_enable_tailgating (uint32_t adc)
 Enable tail gating. More...
 
void adc_disable_tailgating (uint32_t adc)
 Disable tail gating. More...
 
void adc_set_warm_up_mode (uint32_t adc, uint32_t warmupmode)
 Set warm up mode. More...
 
void adc_single_start (uint32_t adc)
 Start ADC in single acquisition. More...
 
void adc_single_stop (uint32_t adc)
 Stop ADC in single acquisition. More...
 
void adc_scan_start (uint32_t adc)
 Start ADC in scan acquisition. More...
 
void adc_scan_stop (uint32_t adc)
 Stop ADC in scan acquisition. More...
 
void adc_set_single_prs_trigger (uint32_t adc, uint8_t prssel)
 Set single PRS trigger. More...
 
void adc_enable_single_prs_trigger (uint32_t adc)
 Enable single PRS Triggering. More...
 
void adc_disable_single_prs_trigger (uint32_t adc)
 Disable single PRS Triggering. More...
 
void adc_set_single_acquisition_cycle (uint32_t adc, uint32_t at)
 Set single acquisition cycle. More...
 
void adc_set_single_reference (uint32_t adc, uint32_t ref)
 Set single reference for acquisition. More...
 
void adc_set_single_channel (uint32_t adc, uint8_t ch)
 Set single channel. More...
 
void adc_set_single_resolution (uint32_t adc, uint32_t res)
 Set single resolution of conversion. More...
 
void adc_set_single_left_aligned (uint32_t adc)
 Set single left aligned output. More...
 
void adc_set_single_right_aligned (uint32_t adc)
 Set single right aligned output. More...
 
void adc_set_single_single_ended (uint32_t adc)
 Set single single-ended conversion. More...
 
void adc_set_single_differential (uint32_t adc)
 Set single differential conversion. More...
 
void adc_enable_single_repeat_conv (uint32_t adc)
 Enable single channel repeated conversion. More...
 
void adc_disable_single_repeat_conv (uint32_t adc)
 Disable single repeated conversion. More...
 
void adc_set_scan_prs_trigger (uint32_t adc, uint8_t prssel)
 Set scan PRS trigger. More...
 
void adc_enable_scan_prs_trigger (uint32_t adc)
 Enable scan PRS Triggering. More...
 
void adc_disable_scan_prs_trigger (uint32_t adc)
 Disable scan PRS Triggering. More...
 
void adc_set_scan_acquisition_cycle (uint32_t adc, uint32_t at)
 Set scan acquisition cycle. More...
 
void adc_set_scan_reference (uint32_t adc, uint32_t ref)
 Set scan reference for acquisition. More...
 
void adc_set_scan_channel (uint32_t adc, uint8_t length, uint8_t channel[])
 Set scan channel list. More...
 
void adc_set_scan_resolution (uint32_t adc, uint32_t res)
 Set scan resolution of conversion. More...
 
void adc_set_scan_left_aligned (uint32_t adc)
 Set scan left aligned output. More...
 
void adc_set_scan_right_aligned (uint32_t adc)
 Set scan right aligned output. More...
 
void adc_set_scan_single_ended (uint32_t adc)
 Set scan single ended conversion. More...
 
void adc_set_scan_differential (uint32_t adc)
 Set scan differential conversion. More...
 
void adc_enable_scan_repeat_conv (uint32_t adc)
 Enable scan repeated conversion. More...
 
void adc_disable_scan_repeat_conv (uint32_t adc)
 Disable scan repeated conversion. More...
 
void adc_enable_single_result_overflow_interrupt (uint32_t adc)
 Enable single result overflow interrupt. More...
 
void adc_disable_single_result_overflow_interrupt (uint32_t adc)
 Disable single result overflow interrupt. More...
 
void adc_enable_single_conversion_complete_interrupt (uint32_t adc)
 Enable single conversion complete interrupt. More...
 
void adc_disable_single_conversion_complete_interrupt (uint32_t adc)
 Disable single conversion complete interrupt. More...
 
void adc_enable_scan_result_overflow_interrupt (uint32_t adc)
 Enable scan result overflow interrupt. More...
 
void adc_disable_scan_result_overflow_interrupt (uint32_t adc)
 Disable scan result overflow interrupt. More...
 
void adc_enable_scan_conversion_complete_interrupt (uint32_t adc)
 Disable scan conversion complete interrupt. More...
 
void adc_disable_scan_conversion_complete_interrupt (uint32_t adc)
 Disable scan conversion complete interrupt. More...
 
bool adc_get_single_result_overflow_flag (uint32_t adc)
 Get single result overflow flag. More...
 
bool adc_get_single_conversion_complete_flag (uint32_t adc)
 Get single conversion complete flag. More...
 
bool adc_get_scan_result_overflow_flag (uint32_t adc)
 Get scan result overflow flag. More...
 
bool adc_get_scan_conversion_complete_flag (uint32_t adc)
 Get scan conversion complete flag. More...
 
void adc_set_single_result_overflow_flag (uint32_t adc)
 Set single result overflow flag. More...
 
void adc_set_single_conversion_complete_flag (uint32_t adc)
 Set single conversion complete flag. More...
 
void adc_set_scan_result_overflow_flag (uint32_t adc)
 Set scan result overflow flag. More...
 
void adc_set_scan_conversion_complete_flag (uint32_t adc)
 Set scan conversion complete flag. More...
 
void adc_clear_single_result_overflow_flag (uint32_t adc)
 Clear single result overflow flag. More...
 
void adc_clear_single_conversion_complete_flag (uint32_t adc)
 Clear single conversion complete flag. More...
 
void adc_clear_scan_result_overflow_flag (uint32_t adc)
 Clear scan result overflow flag. More...
 
void adc_clear_scan_conversion_complete_flag (uint32_t adc)
 Clear scan conversion complete flag. More...
 
uint32_t adc_single_data (uint32_t adc)
 Get result from last scan conversion. More...
 
uint32_t adc_scan_data (uint32_t adc)
 Get result from last scan conversion. More...
 
uint32_t adc_single_data_peak (uint32_t adc)
 Get result from last single conversion (peak) Reading result using this function will not clear SINGLEDV in ADC_STATUS or SINGLE DMA request. More...
 
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 in ADC_STATUS or SCAN DMA request. More...
 
void adc_set_calibration_scan_gain (uint32_t adc, uint8_t scan_gain)
 Set ADC scan gain calibration. More...
 
void adc_set_calibration_scan_offset (uint32_t adc, uint8_t scan_offset)
 Set ADC scan offset calibration. More...
 
void adc_set_calibration_single_gain (uint32_t adc, uint8_t single_gain)
 Set ADC single gain calibration. More...
 
void adc_set_calibration_single_offset (uint32_t adc, uint8_t single_offset)
 Set ADC single offset calibration. More...