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, Safe, 2, 12>
pub fn stop( &mut self ) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, STOP_A, Safe, 2, 12>
Bits 12:13 - STOP bits
sourcepub fn clken(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CLKEN_A, BitM, 11>
pub fn clken(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CLKEN_A, BitM, 11>
Bit 11 - Clock enable
sourcepub fn cpol(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CPOL_A, BitM, 10>
pub fn cpol(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, CPOL_A, BitM, 10>
Bit 10 - Clock polarity
sourcepub fn lbcl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
pub fn lbcl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, bool, BitM, 8>
Bit 8 - Last bit clock pulse
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