pub struct W(_);
Expand description
Register CONF0
writer
Implementations
sourceimpl W
impl W
sourcepub fn parity(&mut self) -> PARITY_W<'_>
pub fn parity(&mut self) -> PARITY_W<'_>
Bit 0 - This register is used to configure the parity check mode. 0:even 1:odd
sourcepub fn parity_en(&mut self) -> PARITY_EN_W<'_>
pub fn parity_en(&mut self) -> PARITY_EN_W<'_>
Bit 1 - Set this bit to enable uart parity check.
sourcepub fn bit_num(&mut self) -> BIT_NUM_W<'_>
pub fn bit_num(&mut self) -> BIT_NUM_W<'_>
Bits 2:3 - This registe is used to set the length of data: 0:5bits 1:6bits 2:7bits 3:8bits
sourcepub fn stop_bit_num(&mut self) -> STOP_BIT_NUM_W<'_>
pub fn stop_bit_num(&mut self) -> STOP_BIT_NUM_W<'_>
Bits 4:5 - This register is used to set the length of stop bit. 1:1bit 2:1.5bits 3:2bits
sourcepub fn sw_rts(&mut self) -> SW_RTS_W<'_>
pub fn sw_rts(&mut self) -> SW_RTS_W<'_>
Bit 6 - This register is used to configure the software rts signal which is used in software flow control.
sourcepub fn sw_dtr(&mut self) -> SW_DTR_W<'_>
pub fn sw_dtr(&mut self) -> SW_DTR_W<'_>
Bit 7 - This register is used to configure the software dtr signal which is used in software flow control..
sourcepub fn txd_brk(&mut self) -> TXD_BRK_W<'_>
pub fn txd_brk(&mut self) -> TXD_BRK_W<'_>
Bit 8 - Set this bit to enbale transmitter to send 0 when the process of sending data is done.
sourcepub fn irda_dplx(&mut self) -> IRDA_DPLX_W<'_>
pub fn irda_dplx(&mut self) -> IRDA_DPLX_W<'_>
Bit 9 - Set this bit to enable irda loopback mode.
sourcepub fn irda_tx_en(&mut self) -> IRDA_TX_EN_W<'_>
pub fn irda_tx_en(&mut self) -> IRDA_TX_EN_W<'_>
Bit 10 - This is the start enable bit for irda transmitter.
sourcepub fn irda_wctl(&mut self) -> IRDA_WCTL_W<'_>
pub fn irda_wctl(&mut self) -> IRDA_WCTL_W<'_>
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.
sourcepub fn irda_tx_inv(&mut self) -> IRDA_TX_INV_W<'_>
pub fn irda_tx_inv(&mut self) -> IRDA_TX_INV_W<'_>
Bit 12 - Set this bit to inverse the level value of irda transmitter’s level.
sourcepub fn irda_rx_inv(&mut self) -> IRDA_RX_INV_W<'_>
pub fn irda_rx_inv(&mut self) -> IRDA_RX_INV_W<'_>
Bit 13 - Set this bit to inverse the level value of irda receiver’s level.
sourcepub fn loopback(&mut self) -> LOOPBACK_W<'_>
pub fn loopback(&mut self) -> LOOPBACK_W<'_>
Bit 14 - Set this bit to enable uart loopback test mode.
sourcepub fn tx_flow_en(&mut self) -> TX_FLOW_EN_W<'_>
pub fn tx_flow_en(&mut self) -> TX_FLOW_EN_W<'_>
Bit 15 - Set this bit to enable transmitter’s flow control function.
sourcepub fn rxfifo_rst(&mut self) -> RXFIFO_RST_W<'_>
pub fn rxfifo_rst(&mut self) -> RXFIFO_RST_W<'_>
Bit 17 - Set this bit to reset uart receiver’s fifo.
sourcepub fn txfifo_rst(&mut self) -> TXFIFO_RST_W<'_>
pub fn txfifo_rst(&mut self) -> TXFIFO_RST_W<'_>
Bit 18 - Set this bit to reset uart transmitter’s fifo.
sourcepub fn rxd_inv(&mut self) -> RXD_INV_W<'_>
pub fn rxd_inv(&mut self) -> RXD_INV_W<'_>
Bit 19 - Set this bit to inverse the level value of uart rxd signal.
sourcepub fn cts_inv(&mut self) -> CTS_INV_W<'_>
pub fn cts_inv(&mut self) -> CTS_INV_W<'_>
Bit 20 - Set this bit to inverse the level value of uart cts signal.
sourcepub fn dsr_inv(&mut self) -> DSR_INV_W<'_>
pub fn dsr_inv(&mut self) -> DSR_INV_W<'_>
Bit 21 - Set this bit to inverse the level value of uart dsr signal.
sourcepub fn txd_inv(&mut self) -> TXD_INV_W<'_>
pub fn txd_inv(&mut self) -> TXD_INV_W<'_>
Bit 22 - Set this bit to inverse the level value of uart txd signal.
sourcepub fn rts_inv(&mut self) -> RTS_INV_W<'_>
pub fn rts_inv(&mut self) -> RTS_INV_W<'_>
Bit 23 - Set this bit to inverse the level value of uart rts signal.
sourcepub fn dtr_inv(&mut self) -> DTR_INV_W<'_>
pub fn dtr_inv(&mut self) -> DTR_INV_W<'_>
Bit 24 - Set this bit to inverse the level value of uart dtr signal.
sourcepub fn clk_en(&mut self) -> CLK_EN_W<'_>
pub fn clk_en(&mut self) -> CLK_EN_W<'_>
Bit 25 - 1.force clock on for registers.support clock only when write registers
sourcepub fn err_wr_mask(&mut self) -> ERR_WR_MASK_W<'_>
pub fn err_wr_mask(&mut self) -> ERR_WR_MASK_W<'_>
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.
sourcepub fn tick_ref_always_on(&mut self) -> TICK_REF_ALWAYS_ON_W<'_>
pub fn tick_ref_always_on(&mut self) -> TICK_REF_ALWAYS_ON_W<'_>
Bit 27 - This register is used to select the clock.1.apb clock 0:ref_tick
Methods from Deref<Target = W<CONF0_SPEC>>
Trait Implementations
sourceimpl From<W<CONF0_SPEC>> for W
impl From<W<CONF0_SPEC>> for W
sourcefn from(writer: W<CONF0_SPEC>) -> Self
fn from(writer: W<CONF0_SPEC>) -> Self
Converts to this type from the input type.
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