Type Alias esp32s3::spi1::misc::W

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

Register MISC writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn cs0_dis(&mut self) -> CS0_DIS_W<'_, MISC_SPEC>

Bit 0 - Set this bit to raise high SPI_CS pin, which means that the SPI device(flash) connected to SPI_CS is in low level when SPI1 transfer starts.

source

pub fn cs1_dis(&mut self) -> CS1_DIS_W<'_, MISC_SPEC>

Bit 1 - Set this bit to raise high SPI_CS1 pin, which means that the SPI device(Ext_RAM) connected to SPI_CS1 is in low level when SPI1 transfer starts.

source

pub fn ck_idle_edge(&mut self) -> CK_IDLE_EDGE_W<'_, MISC_SPEC>

Bit 9 - 1: SPI_CLK line is high when MSPI is idle. 0: SPI_CLK line is low when MSPI is idle.

source

pub fn cs_keep_active(&mut self) -> CS_KEEP_ACTIVE_W<'_, MISC_SPEC>

Bit 10 - SPI_CS line keep low when the bit is set.

source

pub fn auto_per(&mut self) -> AUTO_PER_W<'_, MISC_SPEC>

Bit 11 - Set this bit to enable auto PER function. Hardware will sent out PER command if PES command is sent.

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