Struct esp32::uart0::status::R

source ·
pub struct R(_);
Expand description

Register STATUS reader

Implementations§

source§

impl R

source

pub fn rxfifo_cnt(&self) -> RXFIFO_CNT_R

Bits 0:7 - (rx_mem_cnt rxfifo_cnt) stores the byte num of valid datas in receiver’s fifo. rx_mem_cnt register stores the 3 most significant bits rxfifo_cnt stores the 8 least significant bits.

source

pub fn st_urx_out(&self) -> ST_URX_OUT_R

Bits 8:11 - This register stores the value of receiver’s finite state machine. 0:RX_IDLE 1:RX_STRT 2:RX_DAT0 3:RX_DAT1 4:RX_DAT2 5:RX_DAT3 6:RX_DAT4 7:RX_DAT5 8:RX_DAT6 9:RX_DAT7 10:RX_PRTY 11:RX_STP1 12:RX_STP2 13:RX_DL1

source

pub fn dsrn(&self) -> DSRN_R

Bit 13 - This register stores the level value of the internal uart dsr signal.

source

pub fn ctsn(&self) -> CTSN_R

Bit 14 - This register stores the level value of the internal uart cts signal.

source

pub fn rxd(&self) -> RXD_R

Bit 15 - This register stores the level value of the internal uart rxd signal.

source

pub fn txfifo_cnt(&self) -> TXFIFO_CNT_R

Bits 16:23 - (tx_mem_cnt txfifo_cnt) stores the byte num of valid datas in transmitter’s fifo.tx_mem_cnt stores the 3 most significant bits txfifo_cnt stores the 8 least significant bits.

source

pub fn st_utx_out(&self) -> ST_UTX_OUT_R

Bits 24:27 - This register stores the value of transmitter’s finite state machine. 0:TX_IDLE 1:TX_STRT 2:TX_DAT0 3:TX_DAT1 4:TX_DAT2 5:TX_DAT3 6:TX_DAT4 7:TX_DAT5 8:TX_DAT6 9:TX_DAT7 10:TX_PRTY 11:TX_STP1 12:TX_STP2 13:TX_DL0 14:TX_DL1

source

pub fn dtrn(&self) -> DTRN_R

Bit 29 - The register represent the level value of the internal uart dsr signal.

source

pub fn rtsn(&self) -> RTSN_R

Bit 30 - This register represent the level value of the internal uart cts signal.

source

pub fn txd(&self) -> TXD_R

Bit 31 - This register represent the level value of the internal uart rxd signal.

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

source

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

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<STATUS_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<R<STATUS_SPEC>> for R

source§

fn from(reader: R<STATUS_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.