Type Alias esp32c3::spi0::fsm::R

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

Register FSM reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn cspi_st(&self) -> CSPI_ST_R

Bits 0:3 - The current status of SPI0 slave FSM: spi0_slv_st. 0: idle state, 1: preparation state, 2: send command state, 3: send address state, 4: wait state, 5: read data state, 6:write data state, 7: done state, 8: read data end state.

source

pub fn em_st(&self) -> EM_ST_R

Bits 4:6 - The current status of SPI0 master FSM: spi0_mst_st. 0: idle state, 1:EM_CACHE_GRANT , 2: program/erase suspend state, 3: SPI0 read data state, 4: wait cache/EDMA sent data is stored in SPI0 TX FIFO, 5: SPI0 write data state.

source

pub fn cspi_lock_delay_time(&self) -> CSPI_LOCK_DELAY_TIME_R

Bits 7:11 - The lock delay time of SPI0/1 arbiter by spi0_slv_st, after PER is sent by SPI1.