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
impl Copy for Cms
impl Eq for Cms
impl StructuralPartialEq for Cms
Auto Trait Implementations§
impl Freeze for Cms
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
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
)