pub enum TimerPrescaler {
DefaultX2,
DefaultX4,
}
Expand description
Timer prescaler
Variants§
DefaultX2
The timers kernel clock is equal to hclk if PPREx corresponds to a division by 1 or 2, else it is equal to 2*pclk
DefaultX4
The timers kernel clock is equal to hclk if PPREx corresponds to a division by 1, 2 or 4, else it is equal to 4*pclk
Trait Implementations§
source§impl Clone for TimerPrescaler
impl Clone for TimerPrescaler
source§fn clone(&self) -> TimerPrescaler
fn clone(&self) -> TimerPrescaler
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 From<TimerPrescaler> for Timpre
impl From<TimerPrescaler> for Timpre
source§fn from(value: TimerPrescaler) -> Self
fn from(value: TimerPrescaler) -> Self
Converts to this type from the input type.
source§impl PartialEq for TimerPrescaler
impl PartialEq for TimerPrescaler
impl Copy for TimerPrescaler
impl Eq for TimerPrescaler
impl StructuralPartialEq for TimerPrescaler
Auto Trait Implementations§
impl Freeze for TimerPrescaler
impl RefUnwindSafe for TimerPrescaler
impl Send for TimerPrescaler
impl Sync for TimerPrescaler
impl Unpin for TimerPrescaler
impl UnwindSafe for TimerPrescaler
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)