Module stm32_hal2::adc[][src]

Expand description

API for the ADC (Analog to Digital Converter)

Modules

AdcChannel

https://github.com/rust-embedded/embedded-hal/issues/267 We are simulating an enum due to how the embedded-hal trait is set up. This will be fixed in a future version of EH.

Structs

Adc

Represents an Analog to Digital Converter (ADC) peripheral.

Enums

AdcDevice
AdcInterrupt

See L44 RM, section 16.5: ADC interrupts

Align

ADC data register alignment

ClockMode

ADC Clock mode (L44 RM, Section 16.4.3) The input clock is the same for the three ADCs and can be selected between two different clock sources (see Figure 40: ADC clock scheme):

InputType

Select single-ended, or differential inputs. Sets bits in the ADC[x]_DIFSEL register.

OperationMode

ADC operation mode

SampleTime

ADC sampling time