pub struct W(/* private fields */);
Expand description
Register CR2
writer
Implementations§
source§impl W
impl W
sourcepub fn ccpc(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 0>
pub fn ccpc(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 0>
Bit 0 - Capture/compare preloaded control
sourcepub fn ccus(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 2>
pub fn ccus(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 2>
Bit 2 - Capture/compare control update selection
sourcepub fn ccds(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 3>
pub fn ccds(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 3>
Bit 3 - Capture/compare DMA selection
sourcepub fn mms(&mut self) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Unsafe, 3, 4>
pub fn mms(&mut self) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Unsafe, 3, 4>
Bits 4:6 - Master mode selection
sourcepub fn ois1(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
pub fn ois1(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
Bit 8 - Output Idle state 1
sourcepub fn ois1n(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 9>
pub fn ois1n(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 9>
Bit 9 - Output Idle state 1
Methods from Deref<Target = W<CR2_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§
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