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

Go to the source code of this file.

Functions

void adc_enable_discontinuous_mode (uint32_t adc)
 ADC Enable Discontinuous Mode for Regular Conversions. More...
 
void adc_disable_discontinuous_mode (uint32_t adc)
 ADC Disable Discontinuous Mode for Regular Conversions. More...
 
void adc_set_operation_mode (uint32_t adc, enum adc_opmode opmode)
 ADC Set operation mode. More...
 
void adc_enable_external_trigger_regular (uint32_t adc, uint32_t trigger, uint32_t polarity)
 ADC Enable an External Trigger for Regular Channels. More...
 
void adc_disable_external_trigger_regular (uint32_t adc)
 ADC Disable an External Trigger for Regular Channels. More...
 
void adc_enable_watchdog_interrupt (uint32_t adc)
 ADC Enable Analog Watchdog Interrupt. More...
 
void adc_disable_watchdog_interrupt (uint32_t adc)
 ADC Disable Regular End-Of-Conversion Interrupt. More...
 
bool adc_get_watchdog_flag (uint32_t adc)
 ADC Read the Analog Watchdog Flag. More...
 
void adc_clear_watchdog_flag (uint32_t adc)
 ADC Clear Analog Watchdog Flag. More...
 
void adc_enable_eoc_sequence_interrupt (uint32_t adc)
 ADC Enable Regular End-Of-Conversion Sequence Interrupt. More...
 
void adc_disable_eoc_sequence_interrupt (uint32_t adc)
 ADC Disable Regular End-Of-Conversion Sequence Interrupt. More...
 
bool adc_get_eoc_sequence_flag (uint32_t adc)
 ADC Read the Regular End-Of-Conversion Sequence Flag. More...
 
void adc_clear_eoc_sequence_flag (uint32_t adc)
 ADC Clear Regular End-Of-Conversion Sequence Flag. More...
 
void adc_set_clk_source (uint32_t adc, uint32_t source)
 ADC Set Clock Source. More...
 
void adc_set_regular_sequence (uint32_t adc, uint8_t length, uint8_t channel[])
 ADC Set a Regular Channel Conversion Sequence. More...
 
void adc_set_sample_time_on_all_channels (uint32_t adc, uint8_t time)
 ADC Set the Sample Time for All Channels. More...
 
void adc_enable_vbat_sensor (void)
 ADC Enable The VBat Sensor. More...
 
void adc_disable_vbat_sensor (void)
 ADC Disable The VBat Sensor. More...
 
void adc_calibrate_start (uint32_t adc)
 ADC Start the calibration procedure. More...
 
void adc_calibrate_wait_finish (uint32_t adc)
 ADC Wait to finish the ADC calibration procedure. More...
 
void adc_enable_analog_watchdog_on_all_channels (uint32_t adc)
 ADC Enable Analog Watchdog for All Channels. More...
 
void adc_enable_analog_watchdog_on_selected_channel (uint32_t adc, uint8_t chan)
 ADC Enable Analog Watchdog for a Selected Channel. More...
 
void adc_disable_analog_watchdog (uint32_t adc)
 ADC Disable Analog Watchdog. More...
 
void adc_set_watchdog_high_threshold (uint32_t adc, uint16_t threshold)
 ADC Set Analog Watchdog Upper Threshold. More...
 
void adc_set_watchdog_low_threshold (uint32_t adc, uint16_t threshold)
 ADC Set Analog Watchdog Lower Threshold. More...