Struct stm32wlxx_hal::pac::usart1::cr2::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CR2
writer
Implementations§
§impl W
impl W
pub fn rtoen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RTOEN_A, BitM, 23>
pub fn rtoen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RTOEN_A, BitM, 23>
Bit 23 - Receiver timeout enable
pub fn abren(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ABREN_A, BitM, 20>
pub fn abren(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ABREN_A, BitM, 20>
Bit 20 - Auto baud rate enable
pub 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
pub 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
pub 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
pub 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
pub 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
pub 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
pub fn lbcl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBCL_A, BitM, 8>
pub fn lbcl(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LBCL_A, BitM, 8>
Bit 8 - Last bit clock pulse
pub 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
pub 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
pub 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
pub fn slven(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, SLVEN_A, BitM, 0>
pub fn slven(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, SLVEN_A, BitM, 0>
Bit 0 - Synchronous Slave mode enable
pub fn add(&mut self) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Safe, 8, 24>
pub fn add(&mut self) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Safe, 8, 24>
Bits 24:31 - Address of the USART node
Methods from Deref<Target = W<CR2_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