pub struct W(_);
Expand description
Register CR3
writer
Implementations
sourceimpl W
impl W
sourcepub fn eie(&mut self) -> EIE_W<'_, 0>
pub fn eie(&mut self) -> EIE_W<'_, 0>
Bit 0 - Error interrupt enable Error Interrupt Enable Bit is required to enable interrupt generation in case of a framing error, overrun error noise flag or SPI slave underrun error (FEÂ =Â 1 or OREÂ =Â 1 or NEÂ =Â 1 or UDR = 1 in the USART_ISR register).
sourcepub fn iren(&mut self) -> IREN_W<'_, 1>
pub fn iren(&mut self) -> IREN_W<'_, 1>
Bit 1 - IrDA mode enable This bit is set and cleared by software. This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: If IrDA mode is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn irlp(&mut self) -> IRLP_W<'_, 2>
pub fn irlp(&mut self) -> IRLP_W<'_, 2>
Bit 2 - IrDA low-power This bit is used for selecting between normal and low-power IrDA modes This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: If IrDA mode is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn hdsel(&mut self) -> HDSEL_W<'_, 3>
pub fn hdsel(&mut self) -> HDSEL_W<'_, 3>
Bit 3 - Half-duplex selection Selection of Single-wire Half-duplex mode This bit can only be written when the USART is disabled (UEÂ =Â 0).
sourcepub fn nack(&mut self) -> NACK_W<'_, 4>
pub fn nack(&mut self) -> NACK_W<'_, 4>
Bit 4 - Smartcard NACK enable This bitfield can only be written when the USART is disabled (UEÂ =Â 0). Note: If the USART does not support Smartcard mode, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn scen(&mut self) -> SCEN_W<'_, 5>
pub fn scen(&mut self) -> SCEN_W<'_, 5>
Bit 5 - Smartcard mode enable This bit is used for enabling Smartcard mode. This bitfield can only be written when the USART is disabled (UEÂ =Â 0). Note: If the USART does not support Smartcard mode, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn dmar(&mut self) -> DMAR_W<'_, 6>
pub fn dmar(&mut self) -> DMAR_W<'_, 6>
Bit 6 - DMA enable receiver This bit is set/reset by software
sourcepub fn dmat(&mut self) -> DMAT_W<'_, 7>
pub fn dmat(&mut self) -> DMAT_W<'_, 7>
Bit 7 - DMA enable transmitter This bit is set/reset by software
sourcepub fn rtse(&mut self) -> RTSE_W<'_, 8>
pub fn rtse(&mut self) -> RTSE_W<'_, 8>
Bit 8 - RTS enable This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: If the hardware flow control feature is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn ctse(&mut self) -> CTSE_W<'_, 9>
pub fn ctse(&mut self) -> CTSE_W<'_, 9>
Bit 9 - CTS enable This bit can only be written when the USART is disabled (UEÂ =Â 0) Note: If the hardware flow control feature is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn ctsie(&mut self) -> CTSIE_W<'_, 10>
pub fn ctsie(&mut self) -> CTSIE_W<'_, 10>
Bit 10 - CTS interrupt enable Note: If the hardware flow control feature is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn onebit(&mut self) -> ONEBIT_W<'_, 11>
pub fn onebit(&mut self) -> ONEBIT_W<'_, 11>
Bit 11 - One sample bit method enable This bit enables the user to select the sample method. When the one sample bit method is selected the noise detection flag (NE) is disabled. This bit can only be written when the USART is disabled (UEÂ =Â 0).
sourcepub fn ovrdis(&mut self) -> OVRDIS_W<'_, 12>
pub fn ovrdis(&mut self) -> OVRDIS_W<'_, 12>
Bit 12 - Overrun Disable This bit is used to disable the receive overrun detection. the ORE flag is not set and the new received data overwrites the previous content of the USART_RDR register. When FIFO mode is enabled, the RXFIFO is bypassed and data is written directly in USART_RDR register. Even when FIFO management is enabled, the RXNE flag is to be used. This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: This control bit enables checking the communication flow w/o reading the data
sourcepub fn ddre(&mut self) -> DDRE_W<'_, 13>
pub fn ddre(&mut self) -> DDRE_W<'_, 13>
Bit 13 - DMA Disable on Reception Error This bit can only be written when the USART is disabled (UE=0). Note: The reception errors are: parity error, framing error or noise error.
sourcepub fn dem(&mut self) -> DEM_W<'_, 14>
pub fn dem(&mut self) -> DEM_W<'_, 14>
Bit 14 - Driver enable mode This bit enables the user to activate the external transceiver control, through the DE signal. This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: If the Driver Enable feature is not supported, this bit is reserved and must be kept at reset value. .
sourcepub fn dep(&mut self) -> DEP_W<'_, 15>
pub fn dep(&mut self) -> DEP_W<'_, 15>
Bit 15 - Driver enable polarity selection This bit can only be written when the USART is disabled (UEÂ =Â 0). Note: If the Driver Enable feature is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn scarcnt(&mut self) -> SCARCNT_W<'_, 17>
pub fn scarcnt(&mut self) -> SCARCNT_W<'_, 17>
Bits 17:19 - Smartcard auto-retry count This bitfield specifies the number of retries for transmission and reception in Smartcard mode. In transmission mode, it specifies the number of automatic retransmission retries, before generating a transmission error (FE bit set). In reception mode, it specifies the number or erroneous reception trials, before generating a reception error (RXNE/RXFNE and PE bits set). This bitfield must be programmed only when the USART is disabled (UEÂ =Â 0). When the USART is enabled (UEÂ =Â 1), this bitfield may only be written to 0x0, in order to stop retransmission. Note: If Smartcard mode is not supported, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn wus(&mut self) -> WUS_W<'_, 20>
pub fn wus(&mut self) -> WUS_W<'_, 20>
Bits 20:21 - Wakeup from low-power mode interrupt flag selection This bitfield specifies the event which activates the WUF (Wakeup from low-power mode flag). This bitfield can only be written when the USART is disabled (UE = 0). If the USART does not support the wakeup from Stop feature, this bit is reserved and must be kept at reset value. Refer to page 835.
sourcepub fn wufie(&mut self) -> WUFIE_W<'_, 22>
pub fn wufie(&mut self) -> WUFIE_W<'_, 22>
Bit 22 - Wakeup from low-power mode interrupt enable This bit is set and cleared by software. Note: WUFIE must be set before entering in low-power mode. If the USART does not support the wakeup from Stop feature, this bit is reserved and must be kept at reset value. Refer to page 835.
sourcepub fn txftie(&mut self) -> TXFTIE_W<'_, 23>
pub fn txftie(&mut self) -> TXFTIE_W<'_, 23>
Bit 23 - TXFIFO threshold interrupt enable This bit is set and cleared by software.
sourcepub fn tcbgtie(&mut self) -> TCBGTIE_W<'_, 24>
pub fn tcbgtie(&mut self) -> TCBGTIE_W<'_, 24>
Bit 24 - Transmission Complete before guard time, interrupt enable This bit is set and cleared by software. Note: If the USART does not support the Smartcard mode, this bit is reserved and must be kept at reset value. Refer to .
sourcepub fn rxftcfg(&mut self) -> RXFTCFG_W<'_, 25>
pub fn rxftcfg(&mut self) -> RXFTCFG_W<'_, 25>
Bits 25:27 - Receive FIFO threshold configuration Remaining combinations: Reserved
sourcepub fn rxftie(&mut self) -> RXFTIE_W<'_, 28>
pub fn rxftie(&mut self) -> RXFTIE_W<'_, 28>
Bit 28 - RXFIFO threshold interrupt enable This bit is set and cleared by software.
Methods from Deref<Target = W<CR3_SPEC>>
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