Enum embassy_stm32::rcc::TimerPrescaler
source · 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
source§fn eq(&self, other: &TimerPrescaler) -> bool
fn eq(&self, other: &TimerPrescaler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TimerPrescaler
impl Eq for TimerPrescaler
impl StructuralEq for TimerPrescaler
impl StructuralPartialEq for TimerPrescaler
Auto Trait Implementations§
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