Type Alias R

Source
pub type R = R<SWFC_CONF0_SPEC>;
Expand description

Register SWFC_CONF0 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn xon_char(&self) -> XON_CHAR_R

Bits 0:7 - This register stores the Xon flow control char.

Source

pub fn xoff_char(&self) -> XOFF_CHAR_R

Bits 8:15 - This register stores the Xoff flow control char.

Source

pub fn xon_xoff_still_send(&self) -> XON_XOFF_STILL_SEND_R

Bit 16 - In software flow control mode, UART Tx is disabled once UART Rx receives XOFF. In this status, UART Tx can not transmit XOFF even the received data number is larger than UART_XOFF_THRESHOLD. Set this bit to enable UART Tx can transmit XON/XOFF when UART Tx is disabled.

Source

pub fn sw_flow_con_en(&self) -> SW_FLOW_CON_EN_R

Bit 17 - Set this bit to enable software flow control. It is used with register sw_xon or sw_xoff.

Source

pub fn xonoff_del(&self) -> XONOFF_DEL_R

Bit 18 - Set this bit to remove flow control char from the received data.

Source

pub fn force_xon(&self) -> FORCE_XON_R

Bit 19 - Set this bit to enable the transmitter to go on sending data.

Source

pub fn force_xoff(&self) -> FORCE_XOFF_R

Bit 20 - Set this bit to stop the transmitter from sending data.

Source

pub fn send_xon(&self) -> SEND_XON_R

Bit 21 - Set this bit to send Xon char. It is cleared by hardware automatically.

Source

pub fn send_xoff(&self) -> SEND_XOFF_R

Bit 22 - Set this bit to send Xoff char. It is cleared by hardware automatically.