Type Alias R

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

Register CONF0 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn parity(&self) -> PARITY_R

Bit 0 - This register is used to configure the parity check mode. 0:even 1:odd

Source

pub fn parity_en(&self) -> PARITY_EN_R

Bit 1 - Set this bit to enable uart parity check.

Source

pub fn bit_num(&self) -> BIT_NUM_R

Bits 2:3 - This registe is used to set the length of data: 0:5bits 1:6bits 2:7bits 3:8bits

Source

pub fn stop_bit_num(&self) -> STOP_BIT_NUM_R

Bits 4:5 - This register is used to set the length of stop bit. 1:1bit 2:1.5bits 3:2bits

Source

pub fn sw_rts(&self) -> SW_RTS_R

Bit 6 - This register is used to configure the software rts signal which is used in software flow control.

Source

pub fn sw_dtr(&self) -> SW_DTR_R

Bit 7 - This register is used to configure the software dtr signal which is used in software flow control..

Source

pub fn txd_brk(&self) -> TXD_BRK_R

Bit 8 - Set this bit to enbale transmitter to send 0 when the process of sending data is done.

Source

pub fn irda_dplx(&self) -> IRDA_DPLX_R

Bit 9 - Set this bit to enable irda loopback mode.

Source

pub fn irda_tx_en(&self) -> IRDA_TX_EN_R

Bit 10 - This is the start enable bit for irda transmitter.

Source

pub fn irda_wctl(&self) -> IRDA_WCTL_R

Bit 11 - 1.the irda transmitter’s 11th bit is the same to the 10th bit. 0.set irda transmitter’s 11th bit to 0.

Source

pub fn irda_tx_inv(&self) -> IRDA_TX_INV_R

Bit 12 - Set this bit to inverse the level value of irda transmitter’s level.

Source

pub fn irda_rx_inv(&self) -> IRDA_RX_INV_R

Bit 13 - Set this bit to inverse the level value of irda receiver’s level.

Source

pub fn loopback(&self) -> LOOPBACK_R

Bit 14 - Set this bit to enable uart loopback test mode.

Source

pub fn tx_flow_en(&self) -> TX_FLOW_EN_R

Bit 15 - Set this bit to enable transmitter’s flow control function.

Source

pub fn irda_en(&self) -> IRDA_EN_R

Bit 16 - Set this bit to enable irda protocol.

Source

pub fn rxfifo_rst(&self) -> RXFIFO_RST_R

Bit 17 - Set this bit to reset uart receiver’s fifo.

Source

pub fn txfifo_rst(&self) -> TXFIFO_RST_R

Bit 18 - Set this bit to reset uart transmitter’s fifo.

Source

pub fn rxd_inv(&self) -> RXD_INV_R

Bit 19 - Set this bit to inverse the level value of uart rxd signal.

Source

pub fn cts_inv(&self) -> CTS_INV_R

Bit 20 - Set this bit to inverse the level value of uart cts signal.

Source

pub fn dsr_inv(&self) -> DSR_INV_R

Bit 21 - Set this bit to inverse the level value of uart dsr signal.

Source

pub fn txd_inv(&self) -> TXD_INV_R

Bit 22 - Set this bit to inverse the level value of uart txd signal.

Source

pub fn rts_inv(&self) -> RTS_INV_R

Bit 23 - Set this bit to inverse the level value of uart rts signal.

Source

pub fn dtr_inv(&self) -> DTR_INV_R

Bit 24 - Set this bit to inverse the level value of uart dtr signal.

Source

pub fn clk_en(&self) -> CLK_EN_R

Bit 25 - 1.force clock on for registers.support clock only when write registers

Source

pub fn err_wr_mask(&self) -> ERR_WR_MASK_R

Bit 26 - 1.receiver stops storing data int fifo when data is wrong. 0.receiver stores the data even if the received data is wrong.

Source

pub fn tick_ref_always_on(&self) -> TICK_REF_ALWAYS_ON_R

Bit 27 - This register is used to select the clock.1.apb clock 0:ref_tick