Type Alias esp32s3::spi0::user::W

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

Register USER writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn cs_hold(&mut self) -> CS_HOLD_W<'_, USER_SPEC>

Bit 6 - Set this bit to keep SPI_CS low when MSPI is in DONE state.

source

pub fn cs_setup(&mut self) -> CS_SETUP_W<'_, USER_SPEC>

Bit 7 - Set this bit to keep SPI_CS low when MSPI is in PREP state.

source

pub fn ck_out_edge(&mut self) -> CK_OUT_EDGE_W<'_, USER_SPEC>

Bit 9 - This bit, combined with SPI_MEM_CK_IDLE_EDGE bit, is used to change the clock mode 0~3 of SPI_CLK.

source

pub fn usr_dummy_idle(&mut self) -> USR_DUMMY_IDLE_W<'_, USER_SPEC>

Bit 26 - SPI_CLK is disabled(No clock edges) in DUMMY phase when the bit is enable.

source

pub fn usr_dummy(&mut self) -> USR_DUMMY_W<'_, USER_SPEC>

Bit 29 - This bit enable the DUMMY phase of an SPI transfer.

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