Struct esp32s3::uhci0::conf0::R

source ·
pub struct R(_);
Expand description

Register CONF0 reader

Implementations§

source§

impl R

source

pub fn tx_rst(&self) -> TX_RST_R

Bit 0 - Write 1, then write 0 to this bit to reset decode state machine.

source

pub fn rx_rst(&self) -> RX_RST_R

Bit 1 - Write 1, then write 0 to this bit to reset encode state machine.

source

pub fn uart0_ce(&self) -> UART0_CE_R

Bit 2 - Set this bit to link up HCI and UART0.

source

pub fn uart1_ce(&self) -> UART1_CE_R

Bit 3 - Set this bit to link up HCI and UART1.

source

pub fn uart2_ce(&self) -> UART2_CE_R

Bit 4 - Set this bit to link up HCI and UART2.

source

pub fn seper_en(&self) -> SEPER_EN_R

Bit 5 - Set this bit to separate the data frame using a special char.

source

pub fn head_en(&self) -> HEAD_EN_R

Bit 6 - Set this bit to encode the data packet with a formatting header.

source

pub fn crc_rec_en(&self) -> CRC_REC_EN_R

Bit 7 - Set this bit to enable UHCI to receive the 16 bit CRC.

source

pub fn uart_idle_eof_en(&self) -> UART_IDLE_EOF_EN_R

Bit 8 - If this bit is set to 1, UHCI will end the payload receiving process when UART has been in idle state.

source

pub fn len_eof_en(&self) -> LEN_EOF_EN_R

Bit 9 - If this bit is set to 1, UHCI decoder receiving payload data is end when the receiving byte count has reached the specified value. The value is payload length indicated by UHCI packet header when UHCI_HEAD_EN is 1 or the value is configuration value when UHCI_HEAD_EN is 0. If this bit is set to 0, UHCI decoder receiving payload data is end when 0xc0 is received.

source

pub fn encode_crc_en(&self) -> ENCODE_CRC_EN_R

Bit 10 - Set this bit to enable data integrity checking by appending a 16 bit CCITT-CRC to end of the payload.

source

pub fn clk_en(&self) -> CLK_EN_R

Bit 11 - 1’b1: Force clock on for register. 1’b0: Support clock only when application writes registers.

source

pub fn uart_rx_brk_eof_en(&self) -> UART_RX_BRK_EOF_EN_R

Bit 12 - If this bit is set to 1, UHCI will end payload receive process when NULL frame is received by UART.

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.