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§
Trait Implementations§
impl Copy for AdcAlign
impl StructuralPartialEq for AdcAlign
Auto Trait Implementations§
impl Freeze for AdcAlign
impl RefUnwindSafe for AdcAlign
impl Send for AdcAlign
impl Sync for AdcAlign
impl Unpin for AdcAlign
impl UnwindSafe for AdcAlign
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more