Struct stm32wlxx_hal::pac::spi1::cr1::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CR1
writer
Implementations§
§impl W
impl W
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
Methods from Deref<Target = W<CR1_SPEC>>§
pub 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