[][src]Enum nucleo_f042k6::adc::AdcAlign

pub enum AdcAlign {
    Left,
    Right,
    LeftAsRM,
}

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.

Methods

impl AdcAlign
[src]

pub fn default() -> AdcAlign
[src]

Get the default alignment (currently right aligned)

Trait Implementations

impl Clone for AdcAlign
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AdcAlign
[src]

impl PartialEq<AdcAlign> for AdcAlign
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Copy for AdcAlign
[src]

Auto Trait Implementations

impl Send for AdcAlign

impl Sync for AdcAlign

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]