[−][src]Enum stm32f0xx_hal::adc::AdcAlign
ADC Result Alignment
Variants
LeftLeft 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.
RightRight aligned results (least significant bits)
Results in all precisions returning values from 0-(2^bits-1) in steps of 1.
LeftAsRMLeft 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]
Trait Implementations
impl PartialEq<AdcAlign> for AdcAlign[src]
fn eq(&self, other: &AdcAlign) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Copy for AdcAlign[src]
impl Debug for AdcAlign[src]
impl From<AdcAlign> for ALIGNW[src]
impl Clone for AdcAlign[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self