libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
ADC Interrupt configuration API

ADC Interrupt configuration API. More...

Collaboration diagram for ADC Interrupt configuration API:

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...
 

Detailed Description

ADC Interrupt configuration API.

Function Documentation

◆ adc_clear_eoc_sequence_flag()

void adc_clear_eoc_sequence_flag ( uint32_t  adc)

ADC Clear Regular End-Of-Conversion Sequence Flag.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 283 of file adc.c.

References ADC_ISR, and ADC_ISR_EOSEQ.

◆ adc_clear_watchdog_flag()

void adc_clear_watchdog_flag ( uint32_t  adc)

ADC Clear Analog Watchdog Flag.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 239 of file adc.c.

References ADC_ISR, and ADC_ISR_AWD1.

◆ adc_disable_eoc_sequence_interrupt()

void adc_disable_eoc_sequence_interrupt ( uint32_t  adc)

ADC Disable Regular End-Of-Conversion Sequence Interrupt.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 261 of file adc.c.

References ADC_IER.

◆ adc_disable_watchdog_interrupt()

void adc_disable_watchdog_interrupt ( uint32_t  adc)

ADC Disable Regular End-Of-Conversion Interrupt.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 213 of file adc.c.

References ADC_IER.

◆ adc_enable_eoc_sequence_interrupt()

void adc_enable_eoc_sequence_interrupt ( uint32_t  adc)

ADC Enable Regular End-Of-Conversion Sequence Interrupt.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 250 of file adc.c.

References ADC_IER, and ADC_IER_EOSEQIE.

◆ adc_enable_watchdog_interrupt()

void adc_enable_watchdog_interrupt ( uint32_t  adc)

ADC Enable Analog Watchdog Interrupt.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 202 of file adc.c.

References ADC_IER, and ADC_IER_AWD1IE.

◆ adc_get_eoc_sequence_flag()

bool adc_get_eoc_sequence_flag ( uint32_t  adc)

ADC Read the Regular End-Of-Conversion Sequence Flag.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)

Definition at line 272 of file adc.c.

References ADC_ISR, and ADC_ISR_EOSEQ.

◆ adc_get_watchdog_flag()

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.

Parameters
[in]adcUnsigned int32. ADC base address (ADC register base addresses)
Returns
bool true, if the signal is out of defined analog range.

Definition at line 228 of file adc.c.

References ADC_ISR, and ADC_ISR_AWD1.