Enum stm32f0xx_hal::adc::AdcAlign[][src]

pub enum AdcAlign {
    Left,
    Right,
    LeftAsRM,
}
Expand description

ADC Result Alignment

Variants

Left

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

Right aligned results (least significant bits)

Results in all precisions returning values from 0-(2^bits-1) in steps of 1.

LeftAsRM

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.

Implementations

Get the default alignment (currently right aligned)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.