Enum stm32f0xx_hal::adc::AdcAlign [−][src]
pub enum AdcAlign {
Left,
Right,
LeftAsRM,
}
Expand description
ADC Result Alignment
Variants
Left aligned results (most significant bits)
Results in all precisions returning a value in the range 0-65535. Depending on the precision the result will step by larger or smaller amounts.
Right aligned results (least significant bits)
Results in all precisions returning values from 0-(2^bits-1) in steps of 1.
Left aligned results without correction of 6bit values.
Returns left aligned results exactly as shown in RM0091 Fig.37. Where the values are left aligned within the u16, with the exception of 6 bit mode where the value is left aligned within the first byte of the u16.