Type Alias esp32s3::uhci0::conf1::W

source ·
pub type W = W<CONF1_SPEC>;
Expand description

Register CONF1 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn check_sum_en(&mut self) -> CHECK_SUM_EN_W<'_, CONF1_SPEC>

Bit 0 - This is the enable bit to check header checksum when UHCI receives a data packet.

source

pub fn check_seq_en(&mut self) -> CHECK_SEQ_EN_W<'_, CONF1_SPEC>

Bit 1 - This is the enable bit to check sequence number when UHCI receives a data packet.

source

pub fn crc_disable(&mut self) -> CRC_DISABLE_W<'_, CONF1_SPEC>

Bit 2 - Set this bit to support CRC calculation. Data Integrity Check Present bit in UHCI packet frame should be 1.

source

pub fn save_head(&mut self) -> SAVE_HEAD_W<'_, CONF1_SPEC>

Bit 3 - Set this bit to save the packet header when HCI receives a data packet.

source

pub fn tx_check_sum_re(&mut self) -> TX_CHECK_SUM_RE_W<'_, CONF1_SPEC>

Bit 4 - Set this bit to encode the data packet with a checksum.

source

pub fn tx_ack_num_re(&mut self) -> TX_ACK_NUM_RE_W<'_, CONF1_SPEC>

Bit 5 - Set this bit to encode the data packet with an acknowledgment when a reliable packet is to be transmit.

source

pub fn wait_sw_start(&mut self) -> WAIT_SW_START_W<'_, CONF1_SPEC>

Bit 7 - The uhci-encoder will jump to ST_SW_WAIT status if this register is set to 1.

source

pub fn sw_start(&mut self) -> SW_START_W<'_, CONF1_SPEC>

Bit 8 - If current UHCI_ENCODE_STATE is ST_SW_WAIT, the UHCI will start to send data packet out when this bit is set to 1.

source

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

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual