Type Alias esp32c6::spi0::ctrl::R

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

Register CTRL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn wdummy_dqs_always_out(&self) -> WDUMMY_DQS_ALWAYS_OUT_R

Bit 0 - In the dummy phase of an MSPI write data transfer when accesses to flash, the level of SPI_DQS is output by the MSPI controller.

source

pub fn wdummy_always_out(&self) -> WDUMMY_ALWAYS_OUT_R

Bit 1 - In the dummy phase of an MSPI write data transfer when accesses to flash, the level of SPI_IO[7:0] is output by the MSPI controller.

source

pub fn fdummy_rin(&self) -> FDUMMY_RIN_R

Bit 2 - In an MSPI read data transfer when accesses to flash, the level of SPI_IO[7:0] is output by the MSPI controller in the first half part of dummy phase. It is used to mask invalid SPI_DQS in the half part of dummy phase.

source

pub fn fdummy_wout(&self) -> FDUMMY_WOUT_R

Bit 3 - In an MSPI write data transfer when accesses to flash, the level of SPI_IO[7:0] is output by the MSPI controller in the second half part of dummy phase. It is used to pre-drive flash.

source

pub fn fdout_oct(&self) -> FDOUT_OCT_R

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

source

pub fn fdin_oct(&self) -> FDIN_OCT_R

Bit 5 - Apply 8 signals during read-data phase 1:enable 0: disable

source

pub fn faddr_oct(&self) -> FADDR_OCT_R

Bit 6 - Apply 8 signals during address phase 1:enable 0: disable

source

pub fn fcmd_quad(&self) -> FCMD_QUAD_R

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

source

pub fn fcmd_oct(&self) -> FCMD_OCT_R

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

source

pub fn fastrd_mode(&self) -> FASTRD_MODE_R

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(&self) -> FREAD_DUAL_R

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

source

pub fn q_pol(&self) -> Q_POL_R

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

source

pub fn d_pol(&self) -> D_POL_R

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

source

pub fn fread_quad(&self) -> FREAD_QUAD_R

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

source

pub fn wp(&self) -> WP_R

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

source

pub fn fread_dio(&self) -> FREAD_DIO_R

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

source

pub fn fread_qio(&self) -> FREAD_QIO_R

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

source

pub fn dqs_ie_always_on(&self) -> DQS_IE_ALWAYS_ON_R

Bit 30 - When accesses to flash, 1: the IE signals of pads connected to SPI_DQS are always 1. 0: Others.

source

pub fn data_ie_always_on(&self) -> DATA_IE_ALWAYS_ON_R

Bit 31 - When accesses to flash, 1: the IE signals of pads connected to SPI_IO[7:0] are always 1. 0: Others.