#[repr(u8)]pub enum Prescalerselect {
Div2 = 0,
Div4 = 1,
Div8 = 2,
Div16 = 3,
Div32 = 4,
Div64 = 5,
Div128 = 6,
Div256 = 7,
}
Expand description
Prescaler Configuration
Value on reset: 0
Variants§
Div2 = 0
0: Peripheral clock divided by 2
Div4 = 1
1: Peripheral clock divided by 4
Div8 = 2
2: Peripheral clock divided by 8
Div16 = 3
3: Peripheral clock divided by 16
Div32 = 4
4: Peripheral clock divided by 32
Div64 = 5
5: Peripheral clock divided by 64
Div128 = 6
6: Peripheral clock divided by 128
Div256 = 7
7: Peripheral clock divided by 256
Trait Implementations§
Source§impl Clone for Prescalerselect
impl Clone for Prescalerselect
Source§fn clone(&self) -> Prescalerselect
fn clone(&self) -> Prescalerselect
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Prescalerselect
impl Debug for Prescalerselect
Source§impl From<Prescalerselect> for u8
impl From<Prescalerselect> for u8
Source§fn from(variant: Prescalerselect) -> Self
fn from(variant: Prescalerselect) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Prescalerselect
impl PartialEq for Prescalerselect
impl Copy for Prescalerselect
impl Eq for Prescalerselect
impl IsEnum for Prescalerselect
impl StructuralPartialEq for Prescalerselect
Auto Trait Implementations§
impl Freeze for Prescalerselect
impl RefUnwindSafe for Prescalerselect
impl Send for Prescalerselect
impl Sync for Prescalerselect
impl Unpin for Prescalerselect
impl UnwindSafe for Prescalerselect
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