254 ADC_CR2(adc) &= ~ADC_CR2_EXTTRIG;
308 ADC_CR2(adc) &= ~ADC_CR2_JEXTTRIG;
400 reg32 &= ~(0x7 << (channel * 3));
401 reg32 |= (time << (channel * 3));
405 reg32 &= ~(0x7 << ((channel - 10) * 3));
406 reg32 |= (time << ((channel - 10) * 3));
428 for (i = 0; i <= 9; i++) {
429 reg32 |= (time << (i * 3));
433 for (i = 10; i <= 17; i++) {
434 reg32 |= (time << ((i - 10) * 3));
#define ADC_CR2_EXTTRIG
External trigger conversion mode for regular channels.
#define ADC_CR2_JEXTSEL_MASK
#define ADC_CR2_EXTSEL_MASK
#define ADC_CR2_TSVREFE
Temperature sensor and V_REFINT enable.
void adc_set_sample_time_on_all_channels(uint32_t adc, uint8_t time)
ADC Set the Sample Time for All Channels.
void adc_set_sample_time(uint32_t adc, uint8_t channel, uint8_t time)
ADC Set the Sample Time for a Single Channel.
void adc_calibrate_async(uint32_t adc)
Start the ADC calibration and immediately return.
bool adc_is_calibrating(uint32_t adc)
Is the ADC Calibrating?
void adc_calibration(uint32_t adc)
ADC Calibration.
void adc_start_conversion_direct(uint32_t adc)
ADC Start a Conversion Without Trigger.
void adc_power_on(uint32_t adc)
ADC Power On.
void adc_reset_calibration(uint32_t adc)
ADC Initialize Calibration Registers.
void adc_enable_external_trigger_injected(uint32_t adc, uint32_t trigger)
ADC Enable an External Trigger for Injected Channels.
void adc_disable_external_trigger_injected(uint32_t adc)
ADC Disable an External Trigger for Injected Channels.
void adc_enable_temperature_sensor()
ADC Enable The Temperature Sensor.
void adc_enable_external_trigger_regular(uint32_t adc, uint32_t trigger)
ADC Enable an External Trigger for Regular Channels.
void adc_set_dual_mode(uint32_t mode)
ADC Set Dual A/D Mode.
void adc_calibrate(uint32_t adc)
Start ADC calibration and wait for it to finish.
void adc_disable_temperature_sensor()
ADC Disable The Temperature Sensor.
void adc_disable_external_trigger_regular(uint32_t adc)
ADC Disable an External Trigger for Regular Channels.