Struct esp32s3_hal::peripherals::SPI0
source · pub struct SPI0 { /* private fields */ }
Implementations§
source§impl SPI0
impl SPI0
sourcepub unsafe fn steal() -> SPI0
pub unsafe fn steal() -> SPI0
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn ctrl1(&self) -> &Reg<CTRL1_SPEC>
pub fn ctrl1(&self) -> &Reg<CTRL1_SPEC>
0x0c - SPI0 control 1 register.
sourcepub fn ctrl2(&self) -> &Reg<CTRL2_SPEC>
pub fn ctrl2(&self) -> &Reg<CTRL2_SPEC>
0x10 - SPI0 control 2 register.
sourcepub fn clock(&self) -> &Reg<CLOCK_SPEC>
pub fn clock(&self) -> &Reg<CLOCK_SPEC>
0x14 - SPI_CLK clock division register when SPI0 accesses to flash.
sourcepub fn user1(&self) -> &Reg<USER1_SPEC>
pub fn user1(&self) -> &Reg<USER1_SPEC>
0x1c - SPI0 user1 register.
sourcepub fn user2(&self) -> &Reg<USER2_SPEC>
pub fn user2(&self) -> &Reg<USER2_SPEC>
0x20 - SPI0 user2 register.
sourcepub fn rd_status(&self) -> &Reg<RD_STATUS_SPEC>
pub fn rd_status(&self) -> &Reg<RD_STATUS_SPEC>
0x2c - SPI0 read control register.
sourcepub fn ext_addr(&self) -> &Reg<EXT_ADDR_SPEC>
pub fn ext_addr(&self) -> &Reg<EXT_ADDR_SPEC>
0x30 - SPI0 extended address register.
sourcepub fn cache_fctrl(&self) -> &Reg<CACHE_FCTRL_SPEC>
pub fn cache_fctrl(&self) -> &Reg<CACHE_FCTRL_SPEC>
0x3c - SPI0 external RAM bit mode control register.
sourcepub fn cache_sctrl(&self) -> &Reg<CACHE_SCTRL_SPEC>
pub fn cache_sctrl(&self) -> &Reg<CACHE_SCTRL_SPEC>
0x40 - SPI0 external RAM control register
sourcepub fn sram_cmd(&self) -> &Reg<SRAM_CMD_SPEC>
pub fn sram_cmd(&self) -> &Reg<SRAM_CMD_SPEC>
0x44 - SPI0 external RAM mode control register
sourcepub fn sram_drd_cmd(&self) -> &Reg<SRAM_DRD_CMD_SPEC>
pub fn sram_drd_cmd(&self) -> &Reg<SRAM_DRD_CMD_SPEC>
0x48 - SPI0 external RAM DDR read command control register
sourcepub fn sram_dwr_cmd(&self) -> &Reg<SRAM_DWR_CMD_SPEC>
pub fn sram_dwr_cmd(&self) -> &Reg<SRAM_DWR_CMD_SPEC>
0x4c - SPI0 external RAM DDR write command control register
sourcepub fn sram_clk(&self) -> &Reg<SRAM_CLK_SPEC>
pub fn sram_clk(&self) -> &Reg<SRAM_CLK_SPEC>
0x50 - SPI_CLK clock division register when SPI0 accesses to Ext_RAM.
sourcepub fn timing_cali(&self) -> &Reg<TIMING_CALI_SPEC>
pub fn timing_cali(&self) -> &Reg<TIMING_CALI_SPEC>
0xa8 - SPI0 timing compensation register when accesses to flash.
sourcepub fn din_mode(&self) -> &Reg<DIN_MODE_SPEC>
pub fn din_mode(&self) -> &Reg<DIN_MODE_SPEC>
0xac - MSPI input timing delay mode control register when accesses to flash.
sourcepub fn din_num(&self) -> &Reg<DIN_NUM_SPEC>
pub fn din_num(&self) -> &Reg<DIN_NUM_SPEC>
0xb0 - MSPI input timing delay number control register when accesses to flash.
sourcepub fn dout_mode(&self) -> &Reg<DOUT_MODE_SPEC>
pub fn dout_mode(&self) -> &Reg<DOUT_MODE_SPEC>
0xb4 - MSPI output timing delay mode control register when accesses to flash.
sourcepub fn spi_smem_timing_cali(&self) -> &Reg<SPI_SMEM_TIMING_CALI_SPEC>
pub fn spi_smem_timing_cali(&self) -> &Reg<SPI_SMEM_TIMING_CALI_SPEC>
0xbc - SPI0 Ext_RAM timing compensation register.
sourcepub fn spi_smem_din_mode(&self) -> &Reg<SPI_SMEM_DIN_MODE_SPEC>
pub fn spi_smem_din_mode(&self) -> &Reg<SPI_SMEM_DIN_MODE_SPEC>
0xc0 - MSPI input timing delay mode control register when accesses to Ext_RAM.
sourcepub fn spi_smem_din_num(&self) -> &Reg<SPI_SMEM_DIN_NUM_SPEC>
pub fn spi_smem_din_num(&self) -> &Reg<SPI_SMEM_DIN_NUM_SPEC>
0xc4 - MSPI input timing delay number control register when accesses to Ext_RAM.
sourcepub fn spi_smem_dout_mode(&self) -> &Reg<SPI_SMEM_DOUT_MODE_SPEC>
pub fn spi_smem_dout_mode(&self) -> &Reg<SPI_SMEM_DOUT_MODE_SPEC>
0xc8 - MSPI output timing delay mode control register when accesses to Ext_RAM.
sourcepub fn ecc_ctrl(&self) -> &Reg<ECC_CTRL_SPEC>
pub fn ecc_ctrl(&self) -> &Reg<ECC_CTRL_SPEC>
0xcc - MSPI ECC control register
sourcepub fn ecc_err_addr(&self) -> &Reg<ECC_ERR_ADDR_SPEC>
pub fn ecc_err_addr(&self) -> &Reg<ECC_ERR_ADDR_SPEC>
0xd0 - MSPI ECC error address register
sourcepub fn ecc_err_bit(&self) -> &Reg<ECC_ERR_BIT_SPEC>
pub fn ecc_err_bit(&self) -> &Reg<ECC_ERR_BIT_SPEC>
0xd4 - MSPI ECC error bits register
sourcepub fn spi_smem_ac(&self) -> &Reg<SPI_SMEM_AC_SPEC>
pub fn spi_smem_ac(&self) -> &Reg<SPI_SMEM_AC_SPEC>
0xdc - MSPI external RAM ECC and SPI CS timing control register
sourcepub fn spi_smem_ddr(&self) -> &Reg<SPI_SMEM_DDR_SPEC>
pub fn spi_smem_ddr(&self) -> &Reg<SPI_SMEM_DDR_SPEC>
0xe4 - SPI0 external RAM DDR mode control register
sourcepub fn clock_gate(&self) -> &Reg<CLOCK_GATE_SPEC>
pub fn clock_gate(&self) -> &Reg<CLOCK_GATE_SPEC>
0xe8 - SPI0 clk_gate register
sourcepub fn core_clk_sel(&self) -> &Reg<CORE_CLK_SEL_SPEC>
pub fn core_clk_sel(&self) -> &Reg<CORE_CLK_SEL_SPEC>
0xec - SPI0 module clock select register
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0xf0 - SPI1 interrupt enable register
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0xf4 - SPI1 interrupt clear register
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0xf8 - SPI1 interrupt raw register
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0xfc - SPI1 interrupt status register