pub struct W(/* private fields */);
Expand description
Register CR2
writer
Implementations§
source§impl W
impl W
sourcepub fn linen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LINEN_A, BitM, 14>
pub fn linen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LINEN_A, BitM, 14>
Bit 14 - LIN mode enable
sourcepub fn stop(
&mut self
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, STOP_A, Unsafe, 2, 12>
pub fn stop( &mut self ) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, STOP_A, Unsafe, 2, 12>
Bits 12:13 - STOP bits
sourcepub fn lbdie(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBDIE_A, BitM, 6>
pub fn lbdie(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBDIE_A, BitM, 6>
Bit 6 - LIN break detection interrupt enable
sourcepub fn lbdl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBDL_A, BitM, 5>
pub fn lbdl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBDL_A, BitM, 5>
Bit 5 - lin break detection length
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