#[repr(u8)]pub enum Prescaler {
Div1 = 1,
Div2 = 2,
Div4 = 4,
Div8 = 8,
Div16 = 16,
Div32 = 32,
Div64 = 64,
Div128 = 128,
}Expand description
Prescaler
Variants§
Div1 = 1
Prescaler ratio 1
Div2 = 2
Prescaler ratio 2
Div4 = 4
Prescaler ratio 4
Div8 = 8
Prescaler ratio 8
Div16 = 16
Prescaler ratio 16
Div32 = 32
Prescaler ratio 32
Div64 = 64
Prescaler ratio 64
Div128 = 128
Prescaler ratio 128
Implementations§
Source§impl Prescaler
impl Prescaler
Sourcepub fn compute_min_high_res(val: u32) -> Self
pub fn compute_min_high_res(val: u32) -> Self
Computer the minium prescaler for high resolution
Sourcepub fn compute_min_low_res(val: u32) -> Self
pub fn compute_min_low_res(val: u32) -> Self
Compute the minium prescaler for low resolution
Trait Implementations§
impl Copy for Prescaler
Auto Trait Implementations§
impl Freeze for Prescaler
impl RefUnwindSafe for Prescaler
impl Send for Prescaler
impl Sync for Prescaler
impl Unpin for Prescaler
impl UnwindSafe for Prescaler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.