#[repr(u8)]pub enum Cam {
EdgeAligned = 0,
CenterAlignedCountingDown = 1,
CenterAlignedCountingUp = 2,
CenterAlignedCountingUpDown = 3,
}
Expand description
Counter aligns mode selection
Value on reset: 0
Variants§
EdgeAligned = 0
0: The counter counts up or down depending on the direction bit
CenterAlignedCountingDown = 1
1: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down.
CenterAlignedCountingUp = 2
2: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up.
CenterAlignedCountingUpDown = 3
3: The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down.
Trait Implementations§
impl Copy for Cam
impl Eq for Cam
impl StructuralPartialEq for Cam
Auto Trait Implementations§
impl Freeze for Cam
impl RefUnwindSafe for Cam
impl Send for Cam
impl Sync for Cam
impl Unpin for Cam
impl UnwindSafe for Cam
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