pub struct W(_);
Expand description
Register CR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn cen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CEN_A, BitM, 0>
pub fn cen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CEN_A, BitM, 0>
Bit 0 - Counter enable
sourcepub fn udis(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, UDIS_A, BitM, 1>
pub fn udis(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, UDIS_A, BitM, 1>
Bit 1 - Update disable
sourcepub fn urs(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, URS_A, BitM, 2>
pub fn urs(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, URS_A, BitM, 2>
Bit 2 - Update request source
sourcepub fn opm(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, OPM_A, BitM, 3>
pub fn opm(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, OPM_A, BitM, 3>
Bit 3 - One-pulse mode
sourcepub fn cms(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, CMS_A, Safe, 2, 5>
pub fn cms(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, CMS_A, Safe, 2, 5>
Bits 5:6 - Center-aligned mode selection
sourcepub fn arpe(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ARPE_A, BitM, 7>
pub fn arpe(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, ARPE_A, BitM, 7>
Bit 7 - Auto-reload preload enable
Methods from Deref<Target = W<CR1_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 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