Struct esp32::uhci0::conf0::W

source ·
pub struct W(_);
Expand description

Register CONF0 writer

Implementations§

source§

impl W

source

pub fn in_rst(&mut self) -> IN_RST_W<'_, 0>

Bit 0 - Set this bit to reset in link operations.

source

pub fn out_rst(&mut self) -> OUT_RST_W<'_, 1>

Bit 1 - Set this bit to reset out link operations.

source

pub fn ahbm_fifo_rst(&mut self) -> AHBM_FIFO_RST_W<'_, 2>

Bit 2 - Set this bit to reset dma ahb fifo.

source

pub fn ahbm_rst(&mut self) -> AHBM_RST_W<'_, 3>

Bit 3 - Set this bit to reset dma ahb interface.

source

pub fn in_loop_test(&mut self) -> IN_LOOP_TEST_W<'_, 4>

Bit 4 - Set this bit to enable loop test for in links.

source

pub fn out_loop_test(&mut self) -> OUT_LOOP_TEST_W<'_, 5>

Bit 5 - Set this bit to enable loop test for out links.

source

pub fn out_auto_wrback(&mut self) -> OUT_AUTO_WRBACK_W<'_, 6>

Bit 6 - when in link’s length is 0 go on to use the next in link automatically.

source

pub fn out_no_restart_clr(&mut self) -> OUT_NO_RESTART_CLR_W<'_, 7>

Bit 7 - don’t use

source

pub fn out_eof_mode(&mut self) -> OUT_EOF_MODE_W<'_, 8>

Bit 8 - Set this bit to produce eof after DMA pops all data clear this bit to produce eof after DMA pushes all data

source

pub fn uart0_ce(&mut self) -> UART0_CE_W<'_, 9>

Bit 9 - Set this bit to use UART to transmit or receive data.

source

pub fn uart1_ce(&mut self) -> UART1_CE_W<'_, 10>

Bit 10 - Set this bit to use UART1 to transmit or receive data.

source

pub fn uart2_ce(&mut self) -> UART2_CE_W<'_, 11>

Bit 11 - Set this bit to use UART2 to transmit or receive data.

source

pub fn outdscr_burst_en(&mut self) -> OUTDSCR_BURST_EN_W<'_, 12>

Bit 12 - Set this bit to enable DMA in links to use burst mode.

source

pub fn indscr_burst_en(&mut self) -> INDSCR_BURST_EN_W<'_, 13>

Bit 13 - Set this bit to enable DMA out links to use burst mode.

source

pub fn out_data_burst_en(&mut self) -> OUT_DATA_BURST_EN_W<'_, 14>

Bit 14 - Set this bit to enable DMA burst MODE

source

pub fn mem_trans_en(&mut self) -> MEM_TRANS_EN_W<'_, 15>

Bit 15

source

pub fn seper_en(&mut self) -> SEPER_EN_W<'_, 16>

Bit 16 - Set this bit to use special char to separate the data frame.

source

pub fn head_en(&mut self) -> HEAD_EN_W<'_, 17>

Bit 17 - Set this bit to enable to use head packet before the data frame.

source

pub fn crc_rec_en(&mut self) -> CRC_REC_EN_W<'_, 18>

Bit 18 - Set this bit to enable receiver’’s ability of crc calculation when crc_en bit in head packet is 1 then there will be crc bytes after data_frame

source

pub fn uart_idle_eof_en(&mut self) -> UART_IDLE_EOF_EN_W<'_, 19>

Bit 19 - Set this bit to enable to use idle time when the idle time after data frame is satisfied this means the end of a data frame.

source

pub fn len_eof_en(&mut self) -> LEN_EOF_EN_W<'_, 20>

Bit 20 - Set this bit to enable to use packet_len in packet head when the received data is equal to packet_len this means the end of a data frame.

source

pub fn encode_crc_en(&mut self) -> ENCODE_CRC_EN_W<'_, 21>

Bit 21 - Set this bit to enable crc calculation for data frame when bit6 in the head packet is 1.

source

pub fn clk_en(&mut self) -> CLK_EN_W<'_, 22>

Bit 22 - Set this bit to enable clock-gating for read or write registers.

source

pub fn uart_rx_brk_eof_en(&mut self) -> UART_RX_BRK_EOF_EN_W<'_, 23>

Bit 23 - Set this bit to enable to use brk char as the end of a data frame.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

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

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<CONF0_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<CONF0_SPEC>> for W

source§

fn from(writer: W<CONF0_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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.