Type Alias esp32s2::uart0::mem_conf::R

source ·
pub type R = R<MEM_CONF_SPEC>;
Expand description

Register MEM_CONF reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn rx_size(&self) -> RX_SIZE_R

Bits 1:3 - This register is used to configure the amount of RAM allocated for RX FIFO. The default number is 128 bytes.

source

pub fn tx_size(&self) -> TX_SIZE_R

Bits 4:6 - This register is used to configure the amount of RAM allocated for TX FIFO. The default number is 128 bytes.

source

pub fn rx_flow_thrhd(&self) -> RX_FLOW_THRHD_R

Bits 7:15 - This register is used to configure the maximum amount of data bytes that can be received when hardware flow control works.

source

pub fn rx_tout_thrhd(&self) -> RX_TOUT_THRHD_R

Bits 16:25 - This register is used to configure the threshold time that the receiver takes to receive one byte, in the unit of bit time (the time it takes to transfer one bit). The UART_RXFIFO_TOUT_INT interrupt will be triggered when the receiver takes more time to receive one byte with UART RX_TOUT_EN set to 1.

source

pub fn mem_force_pd(&self) -> MEM_FORCE_PD_R

Bit 26 - Set this bit to force power down UART RAM.

source

pub fn mem_force_pu(&self) -> MEM_FORCE_PU_R

Bit 27 - Set this bit to force power up UART RAM.