#[repr(u8)]pub enum Ctmode {
TIMER = 0,
COUNTER_RISING_EDGE = 1,
COUNTER_FALLING_EDGE = 2,
COUNTER_DUAL_EDGE = 3,
}Variants§
TIMER = 0
Timer Mode. Incremented every rising APB bus clock edge.
COUNTER_RISING_EDGE = 1
Counter Mode rising edge. TC is incremented on rising edges on the CAP input selected by bits 3:2.
COUNTER_FALLING_EDGE = 2
Counter Mode falling edge. TC is incremented on falling edges on the CAP input selected by bits 3:2.
COUNTER_DUAL_EDGE = 3
Counter Mode dual edge. TC is incremented on both edges on the CAP input selected by bits 3:2.
Implementations§
Trait Implementations§
Source§impl Ord for Ctmode
impl Ord for Ctmode
Source§impl PartialOrd for Ctmode
impl PartialOrd for Ctmode
impl Copy for Ctmode
impl Eq for Ctmode
impl StructuralPartialEq for Ctmode
Auto Trait Implementations§
impl Freeze for Ctmode
impl RefUnwindSafe for Ctmode
impl Send for Ctmode
impl Sync for Ctmode
impl Unpin for Ctmode
impl UnwindSafe for Ctmode
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