pub struct W(_);
Expand description
Register CR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn bidimode(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, BIDIMODE_A, BitM, 15>
pub fn bidimode(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, BIDIMODE_A, BitM, 15>
Bit 15 - Bidirectional data mode enable
sourcepub fn bidioe(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, BIDIOE_A, BitM, 14>
pub fn bidioe(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, BIDIOE_A, BitM, 14>
Bit 14 - Output enable in bidirectional mode
sourcepub fn crcen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CRCEN_A, BitM, 13>
pub fn crcen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CRCEN_A, BitM, 13>
Bit 13 - Hardware CRC calculation enable
sourcepub fn crcnext(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, CRCNEXT_A, BitM, 12>
pub fn crcnext(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, CRCNEXT_A, BitM, 12>
Bit 12 - CRC transfer next
sourcepub fn dff(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, DFF_A, BitM, 11>
pub fn dff(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, DFF_A, BitM, 11>
Bit 11 - Data frame format
sourcepub fn rxonly(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RXONLY_A, BitM, 10>
pub fn rxonly(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RXONLY_A, BitM, 10>
Bit 10 - Receive only
sourcepub fn ssm(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SSM_A, BitM, 9>
pub fn ssm(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SSM_A, BitM, 9>
Bit 9 - Software slave management
sourcepub fn ssi(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SSI_A, BitM, 8>
pub fn ssi(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SSI_A, BitM, 8>
Bit 8 - Internal slave select
sourcepub fn lsbfirst(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, LSBFIRST_A, BitM, 7>
pub fn lsbfirst(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, LSBFIRST_A, BitM, 7>
Bit 7 - Frame format
sourcepub fn br(&mut self) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, BR_A, Safe, 3, 3>
pub fn br(&mut self) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, BR_A, Safe, 3, 3>
Bits 3:5 - Baud rate control
sourcepub fn mstr(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, MSTR_A, BitM, 2>
pub fn mstr(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, MSTR_A, BitM, 2>
Bit 2 - Master selection
Methods from Deref<Target = W<CR1_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