Struct esp32h2::uart0::conf0::R

source ·
pub struct R(_);
Expand description

Register CONF0 reader

Implementations§

source§

impl R

source

pub fn parity(&self) -> PARITY_R

Bit 0 - This register is used to configure the parity check mode.

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 register is used to set the length of data.

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.

source

pub fn txd_brk(&self) -> TXD_BRK_R

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

source

pub fn irda_dplx(&self) -> IRDA_DPLX_R

Bit 7 - Set this bit to enable IrDA loopback mode.

source

pub fn irda_tx_en(&self) -> IRDA_TX_EN_R

Bit 8 - This is the start enable bit for IrDA transmitter.

source

pub fn irda_wctl(&self) -> IRDA_WCTL_R

Bit 9 - 1’h1: The IrDA transmitter’s 11th bit is the same as 10th bit. 1’h0: Set IrDA transmitter’s 11th bit to 0.

source

pub fn irda_tx_inv(&self) -> IRDA_TX_INV_R

Bit 10 - Set this bit to invert the level of IrDA transmitter.

source

pub fn irda_rx_inv(&self) -> IRDA_RX_INV_R

Bit 11 - Set this bit to invert the level of IrDA receiver.

source

pub fn loopback(&self) -> LOOPBACK_R

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

source

pub fn tx_flow_en(&self) -> TX_FLOW_EN_R

Bit 13 - Set this bit to enable flow control function for transmitter.

source

pub fn irda_en(&self) -> IRDA_EN_R

Bit 14 - Set this bit to enable IrDA protocol.

source

pub fn rxd_inv(&self) -> RXD_INV_R

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

source

pub fn txd_inv(&self) -> TXD_INV_R

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

source

pub fn dis_rx_dat_ovf(&self) -> DIS_RX_DAT_OVF_R

Bit 17 - Disable UART Rx data overflow detect.

source

pub fn err_wr_mask(&self) -> ERR_WR_MASK_R

Bit 18 - 1’h1: Receiver stops storing data into FIFO when data is wrong. 1’h0: Receiver stores the data even if the received data is wrong.

source

pub fn autobaud_en(&self) -> AUTOBAUD_EN_R

Bit 19 - This is the enable bit for detecting baudrate.

source

pub fn mem_clk_en(&self) -> MEM_CLK_EN_R

Bit 20 - UART memory clock gate enable signal.

source

pub fn sw_rts(&self) -> SW_RTS_R

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

source

pub fn rxfifo_rst(&self) -> RXFIFO_RST_R

Bit 22 - Set this bit to reset the uart receive-FIFO.

source

pub fn txfifo_rst(&self) -> TXFIFO_RST_R

Bit 23 - Set this bit to reset the uart transmit-FIFO.

Methods from Deref<Target = R<CONF0_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CONF0_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<CONF0_SPEC>> for R

source§

fn from(reader: R<CONF0_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.