Type Alias esp32c3::spi2::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 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 signals 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 signals 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 signals 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 signals 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 apply 2 signals. 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 apply 4 signals. 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 hold_pol(&self) -> HOLD_POL_R

Bit 20 - SPI_HOLD output value when SPI is idle. 1: output high, 0: output low. Can be configured in CONF state.

source

pub fn wp_pol(&self) -> WP_POL_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.