pub struct W(/* private fields */);Expand description
Register UART_FLOW_CTRL writer
Implementations§
Source§impl W
impl W
Sourcepub fn trigger_level(
&mut self,
) -> FieldWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, u8, u8, Unsafe, 8, 0>
pub fn trigger_level( &mut self, ) -> FieldWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - Trigger level. When the receiver FIFO has less entries than the amount of this field, a Ready To Send (RTS) output signal is activated. By setting this field to ‘0’, flow control is effectively disabled (may be useful for debug purposes).
Sourcepub fn rts_polarity(
&mut self,
) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 16>
pub fn rts_polarity( &mut self, ) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 16>
Bit 16 - Polarity of the RTS output signal: ‘0’: RTS is active low; ‘1’: RTS is active high; During SCB reset (Hibernate system power mode), RTS output signal is ‘1’. This represents an inactive state assuming an active low polarity.
Sourcepub fn cts_polarity(
&mut self,
) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 24>
pub fn cts_polarity( &mut self, ) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 24>
Bit 24 - Polarity of the CTS input signal ‘0’: CTS is active low ; ‘1’: CTS is active high;
Sourcepub fn cts_enabled(
&mut self,
) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 25>
pub fn cts_enabled( &mut self, ) -> BitWriterRaw<'_, u32, UART_FLOW_CTRL_SPEC, bool, BitM, 25>
Bit 25 - Enable use of CTS input signal by the UART transmitter: ‘0’: Disabled. The UART transmitter ignores the CTS input signal and transmits when a data frame is available for transmission in the TX FIFO or the TX shift register. ‘1’: Enabled. The UART transmitter uses CTS input signal to qualify the transmission of data. It transmits when CTS input signal is active and a data frame is available for transmission in the TX FIFO or the TX shift register. If UART_CTRL.LOOPBACK is ‘1’, the CTS input signal is driven by the RTS output signal locally in SCB (both signals are subjected to signal polarity changes are indicated by RTS_POLARITY and CTS_POLARITY).