116 uint32_t reg32 = ((
ADC_CCR & ~ADC_CCR_ADCPRE_MASK) | prescale);
139 reg32 |= (trigger | polarity);
151 ADC_CR2(adc) &= ~ADC_CR2_EXTEN_MASK;
172 reg32 |= (trigger | polarity);
184 ADC_CR2(adc) &= ~ADC_CR2_JEXTEN_MASK;
201 reg32 &= ~ADC_CR1_RES_MASK;
229 ADC_CR1(adc) &= ~ADC_CR1_OVRIE;
262 ADC_SR(adc) &= ~ADC_SR_OVR;
#define ADC_CR2_JEXTSEL_MASK
#define ADC_CR2_JEXTEN_MASK
#define ADC_CR2_EXTEN_MASK
#define ADC_CR2_EXTSEL_MASK
void adc_disable_temperature_sensor(void)
ADC Disable The Temperature Sensor.
void adc_disable_overrun_interrupt(uint32_t adc)
ADC Disable the Overrun Interrupt.
void adc_set_dma_terminate(uint32_t adc)
ADC Set DMA to Terminate.
void adc_clear_overrun_flag(uint32_t adc)
ADC Clear Overrun Flags.
void adc_set_dma_continue(uint32_t adc)
ADC Set DMA to Continue.
void adc_power_on(uint32_t adc)
ADC Power On.
void adc_set_resolution(uint32_t adc, uint32_t resolution)
ADC Set Resolution.
void adc_enable_external_trigger_regular(uint32_t adc, uint32_t trigger, uint32_t polarity)
ADC Enable an External Trigger for Regular Channels.
void adc_enable_temperature_sensor(void)
ADC Enable The Temperature Sensor.
void adc_eoc_after_each(uint32_t adc)
ADC Enable an EOC for Each Conversion.
void adc_enable_external_trigger_injected(uint32_t adc, uint32_t trigger, uint32_t polarity)
ADC Enable an External Trigger for Injected Channels.
void adc_set_clk_prescale(uint32_t prescale)
ADC Set Clock Prescale The ADC clock can be prescaled.
void adc_disable_external_trigger_injected(uint32_t adc)
ADC Disable an External Trigger for Injected Channels.
void adc_enable_overrun_interrupt(uint32_t adc)
ADC Enable the Overrun Interrupt.
bool adc_awd(uint32_t adc)
ADC Read the Analog Watchdog Flag.
void adc_eoc_after_group(uint32_t adc)
ADC Disable the EOC for Each Conversion.
bool adc_get_overrun_flag(uint32_t adc)
ADC Read the Overrun Flag.
void adc_disable_external_trigger_regular(uint32_t adc)
ADC Disable an External Trigger for Regular Channels.
#define ADC_SR_OVR
Overrun.
#define ADC_SR_AWD
Analog watchdog flag.