Type Alias esp32c3::spi1::ctrl::W

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

Register CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn fdummy_out(&mut self) -> FDUMMY_OUT_W<'_, CTRL_SPEC>

Bit 3 - In the dummy phase the signal level of spi is output by the spi controller.

source

pub fn fcmd_dual(&mut self) -> FCMD_DUAL_W<'_, CTRL_SPEC>

Bit 7 - Apply 2 signals during command phase 1:enable 0: disable

source

pub fn fcmd_quad(&mut self) -> FCMD_QUAD_W<'_, CTRL_SPEC>

Bit 8 - Apply 4 signals during command phase 1:enable 0: disable

source

pub fn fcs_crc_en(&mut self) -> FCS_CRC_EN_W<'_, CTRL_SPEC>

Bit 10 - For SPI1, initialize crc32 module before writing encrypted data to flash. Active low.

source

pub fn tx_crc_en(&mut self) -> TX_CRC_EN_W<'_, CTRL_SPEC>

Bit 11 - For SPI1, enable crc32 when writing encrypted data to flash. 1: enable 0:disable

source

pub fn fastrd_mode(&mut self) -> FASTRD_MODE_W<'_, CTRL_SPEC>

Bit 13 - This bit enable the bits: spi_mem_fread_qio, spi_mem_fread_dio, spi_mem_fread_qout and spi_mem_fread_dout. 1: enable 0: disable.

source

pub fn fread_dual(&mut self) -> FREAD_DUAL_W<'_, CTRL_SPEC>

Bit 14 - In the read operations, read-data phase apply 2 signals. 1: enable 0: disable.

source

pub fn resandres(&mut self) -> RESANDRES_W<'_, CTRL_SPEC>

Bit 15 - The Device ID is read out to SPI_MEM_RD_STATUS register, this bit combine with spi_mem_flash_res bit. 1: enable 0: disable.

source

pub fn q_pol(&mut self) -> Q_POL_W<'_, CTRL_SPEC>

Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low

source

pub fn d_pol(&mut self) -> D_POL_W<'_, CTRL_SPEC>

Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low

source

pub fn fread_quad(&mut self) -> FREAD_QUAD_W<'_, CTRL_SPEC>

Bit 20 - In the read operations read-data phase apply 4 signals. 1: enable 0: disable.

source

pub fn wp(&mut self) -> WP_W<'_, CTRL_SPEC>

Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low.

source

pub fn wrsr_2b(&mut self) -> WRSR_2B_W<'_, CTRL_SPEC>

Bit 22 - two bytes data will be written to status register when it is set. 1: enable 0: disable.

source

pub fn fread_dio(&mut self) -> FREAD_DIO_W<'_, CTRL_SPEC>

Bit 23 - In the read operations address phase and read-data phase apply 2 signals. 1: enable 0: disable.

source

pub fn fread_qio(&mut self) -> FREAD_QIO_W<'_, CTRL_SPEC>

Bit 24 - In the read operations address phase and read-data phase apply 4 signals. 1: enable 0: disable.