pub struct W(_);
Expand description
Register CR
writer
Implementations
sourceimpl W
impl W
sourcepub fn enable(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ENABLE_A, BitM, 0>
pub fn enable(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, ENABLE_A, BitM, 0>
Bit 0 - LPTIM Enable
sourcepub fn sngstrt(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, SNGSTRT_A, BitM, 1>
pub fn sngstrt(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, SNGSTRT_A, BitM, 1>
Bit 1 - LPTIM start in single mode
sourcepub fn cntstrt(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CNTSTRT_A, BitM, 2>
pub fn cntstrt(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, CNTSTRT_A, BitM, 2>
Bit 2 - Timer start in continuous mode
sourcepub fn countrst(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 3>
pub fn countrst(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 3>
Bit 3 - Counter reset
Methods from Deref<Target = W<CR_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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