pub struct W(_);
Expand description
Register CTCR
writer
Implementations
sourceimpl W
impl W
sourcepub fn ctmode(&mut self) -> CTMODE_W<'_>
pub fn ctmode(&mut self) -> CTMODE_W<'_>
Bits 0:1 - Counter/Timer Mode This field selects which rising APB bus clock edges can increment Timer’s Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC is incremented when the Prescale Counter matches the Prescale Register.
sourcepub fn cinsel(&mut self) -> CINSEL_W<'_>
pub fn cinsel(&mut self) -> CINSEL_W<'_>
Bits 2:3 - Count Input Select When bits 1:0 in this register are not 00, these bits select which CAP pin is sampled for clocking. Note: If Counter mode is selected for a particular CAPn input in the CTCR, the 3 bits for that input in the Capture Control Register (CCR) must be programmed as 000. However, capture and/or interrupt can be selected for the other 3 CAPn inputs in the same timer.
sourcepub fn encc(&mut self) -> ENCC_W<'_>
pub fn encc(&mut self) -> ENCC_W<'_>
Bit 4 - Setting this bit to 1 enables clearing of the timer and the prescaler when the capture-edge event specified in bits 7:5 occurs.
Methods from Deref<Target = W<CTCR_SPEC>>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more