Type Alias esp32s2::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 ext_hold_en(&self) -> EXT_HOLD_EN_R

Bit 2 - Set the bit to hold spi. The bit is combined with SPI_USR_PREP_HOLD,SPI_USR_CMD_HOLD,SPI_USR_ADDR_HOLD,SPI_USR_DUMMY_HOLD,SPI_USR_DIN_HOLD,SPI_USR_DOUT_HOLD and SPI_USR_HOLD_POL. Can be configured in CONF state.

source

pub fn dummy_out(&self) -> DUMMY_OUT_R

Bit 3 - In the dummy phase the signal level of spi is output by the spi controller. Can be configured in CONF state.

source

pub fn faddr_dual(&self) -> FADDR_DUAL_R

Bit 5 - Apply 2-bit mode during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn faddr_quad(&self) -> FADDR_QUAD_R

Bit 6 - Apply 4-bit mode during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn faddr_oct(&self) -> FADDR_OCT_R

Bit 7 - Apply 8-bit mode during addr phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_dual(&self) -> FCMD_DUAL_R

Bit 8 - Apply 2-bit mode during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_quad(&self) -> FCMD_QUAD_R

Bit 9 - Apply 4-bit mode during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fcmd_oct(&self) -> FCMD_OCT_R

Bit 10 - Apply 8-bit mode during command phase 1:enable 0: disable. Can be configured in CONF state.

source

pub fn fread_dual(&self) -> FREAD_DUAL_R

Bit 14 - In the read operations, read-data phase is in 2-bit mode. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn fread_quad(&self) -> FREAD_QUAD_R

Bit 15 - In the read operations read-data phase is in 4-bit mode. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn fread_oct(&self) -> FREAD_OCT_R

Bit 16 - In the read operations read-data phase is in 8-bit mode. 1: enable 0: disable. Can be configured in CONF state.

source

pub fn q_pol(&self) -> Q_POL_R

Bit 18 - The bit is used to set MISO line polarity, 1: high 0, low. Can be configured in CONF state.

source

pub fn d_pol(&self) -> D_POL_R

Bit 19 - The bit is used to set MOSI line polarity, 1: high 0, low. Can be configured in CONF state.

source

pub fn wp(&self) -> WP_R

Bit 21 - Write protect signal output when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

source

pub fn rd_bit_order(&self) -> RD_BIT_ORDER_R

Bit 25 - In read-data (MISO) phase 1: LSB first 0: MSB first. Can be configured in CONF state.

source

pub fn wr_bit_order(&self) -> WR_BIT_ORDER_R

Bit 26 - In command address write-data (MOSI) phases 1: LSB firs 0: MSB first. Can be configured in CONF state.