#[repr(u8)]pub enum Prescaler {
Div4 = 0,
Div8 = 1,
Div16 = 2,
Div32 = 3,
Div64 = 4,
Div128 = 5,
Div256 = 6,
Div512 = 7,
}
Expand description
Clock frequency relative to the system clock Prescaler Configuration
Value on reset: 0
Variants§
Div4 = 0
0: Peripheral clock divided by 4
Div8 = 1
1: Peripheral clock divided by 8
Div16 = 2
2: Peripheral clock divided by 16
Div32 = 3
3: Peripheral clock divided by 32
Div64 = 4
4: Peripheral clock divided by 64
Div128 = 5
5: Peripheral clock divided by 128
Div256 = 6
6: Peripheral clock divided by 256
Div512 = 7
7: Peripheral clock divided by 512
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 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