pub enum Align {
    Right,
    Left,
}
Expand description

ADC Result Alignment

Variants

Right

Right aligned results (least significant bits)

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

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.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.