Type Alias esp32h2::spi0::spi_mem_cmd::R

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

Register SPI_MEM_CMD reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn spi_mem_mst_st(&self) -> SPI_MEM_MST_ST_R

Bits 0:3 - The current status of SPI0 master FSM: spi0_mst_st. 0: idle state, 1:SPI0_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 spi_mem_slv_st(&self) -> SPI_MEM_SLV_ST_R

Bits 4:7 - The current status of SPI0 slave FSM: mspi_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 spi_mem_usr(&self) -> SPI_MEM_USR_R

Bit 18 - SPI0 USR_CMD start bit, only used when SPI_MEM_AXI_REQ_EN is cleared. An operation will be triggered when the bit is set. The bit will be cleared once the operation done.1: enable 0: disable.