libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
ADC Interrupt configuration API. More...
Functions | |
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... | |
ADC Interrupt configuration API.
void adc_clear_eoc_sequence_flag | ( | uint32_t | adc | ) |
ADC Clear Regular End-Of-Conversion Sequence Flag.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 283 of file adc.c.
References ADC_ISR, and ADC_ISR_EOSEQ.
void adc_clear_watchdog_flag | ( | uint32_t | adc | ) |
ADC Clear Analog Watchdog Flag.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 239 of file adc.c.
References ADC_ISR, and ADC_ISR_AWD1.
void adc_disable_eoc_sequence_interrupt | ( | uint32_t | adc | ) |
ADC Disable Regular End-Of-Conversion Sequence Interrupt.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 261 of file adc.c.
References ADC_IER.
void adc_disable_watchdog_interrupt | ( | uint32_t | adc | ) |
ADC Disable Regular End-Of-Conversion Interrupt.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 213 of file adc.c.
References ADC_IER.
void adc_enable_eoc_sequence_interrupt | ( | uint32_t | adc | ) |
ADC Enable Regular End-Of-Conversion Sequence Interrupt.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 250 of file adc.c.
References ADC_IER, and ADC_IER_EOSEQIE.
void adc_enable_watchdog_interrupt | ( | uint32_t | adc | ) |
ADC Enable Analog Watchdog Interrupt.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 202 of file adc.c.
References ADC_IER, and ADC_IER_AWD1IE.
bool adc_get_eoc_sequence_flag | ( | uint32_t | adc | ) |
ADC Read the Regular End-Of-Conversion Sequence Flag.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 272 of file adc.c.
References ADC_ISR, and ADC_ISR_EOSEQ.
bool adc_get_watchdog_flag | ( | uint32_t | adc | ) |
ADC Read the Analog Watchdog Flag.
This flag is set when the converted voltage crosses the high or low thresholds.
[in] | adc | Unsigned int32. ADC base address (ADC register base addresses) |
Definition at line 228 of file adc.c.
References ADC_ISR, and ADC_ISR_AWD1.