Enum stm32_metapac::timer::vals::Cms
#[repr(u8)]pub enum Cms {
EDGEALIGNED = 0,
CENTERALIGNED1 = 1,
CENTERALIGNED2 = 2,
CENTERALIGNED3 = 3,
}
Variants§
EDGEALIGNED = 0
The counter counts up or down depending on the direction bit
CENTERALIGNED1 = 1
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down.
CENTERALIGNED2 = 2
The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up.
CENTERALIGNED3 = 3
The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down.
Implementations§
Trait Implementations§
§impl Ord for Cms
impl Ord for Cms
§impl PartialOrd for Cms
impl PartialOrd for Cms
§fn partial_cmp(&self, other: &Cms) -> Option<Ordering>
fn partial_cmp(&self, other: &Cms) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Cms
impl Eq for Cms
impl StructuralEq for Cms
impl StructuralPartialEq for Cms
Auto Trait Implementations§
impl RefUnwindSafe for Cms
impl Send for Cms
impl Sync for Cms
impl Unpin for Cms
impl UnwindSafe for Cms
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