pub struct W(_);
Expand description
Register CR2
writer
Implementations
sourceimpl W
impl W
sourcepub fn msbfirst(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, MSBFIRST_A, BitM, 19>
pub fn msbfirst(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, MSBFIRST_A, BitM, 19>
Bit 19 - Most significant bit first
sourcepub fn datainv(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, DATAINV_A, BitM, 18>
pub fn datainv(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, DATAINV_A, BitM, 18>
Bit 18 - Binary data inversion
sourcepub fn txinv(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, TXINV_A, BitM, 17>
pub fn txinv(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, TXINV_A, BitM, 17>
Bit 17 - TX pin active level inversion
sourcepub fn rxinv(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RXINV_A, BitM, 16>
pub fn rxinv(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RXINV_A, BitM, 16>
Bit 16 - RX pin active level inversion
sourcepub fn swap(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, SWAP_A, BitM, 15>
pub fn swap(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, SWAP_A, BitM, 15>
Bit 15 - Swap TX/RX pins
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 addm7(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ADDM7_A, BitM, 4>
pub fn addm7(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ADDM7_A, BitM, 4>
Bit 4 - 7-bit Address Detection/4-bit Address Detection
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
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