pub struct W(/* private fields */);
Expand description
Register CR1
writer
Implementations§
Source§impl 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§
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