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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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