Struct esp32s2_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 - SPI control register 1
sourcepub fn ctrl2(&self) -> &Reg<CTRL2_SPEC>
pub fn ctrl2(&self) -> &Reg<CTRL2_SPEC>
0x10 - SPI control register 2
sourcepub fn clock(&self) -> &Reg<CLOCK_SPEC>
pub fn clock(&self) -> &Reg<CLOCK_SPEC>
0x14 - SPI clock control register
sourcepub fn user1(&self) -> &Reg<USER1_SPEC>
pub fn user1(&self) -> &Reg<USER1_SPEC>
0x1c - SPI USER control register 1
sourcepub fn user2(&self) -> &Reg<USER2_SPEC>
pub fn user2(&self) -> &Reg<USER2_SPEC>
0x20 - SPI USER control register 2
sourcepub fn mosi_dlen(&self) -> &Reg<MOSI_DLEN_SPEC>
pub fn mosi_dlen(&self) -> &Reg<MOSI_DLEN_SPEC>
0x24 - MOSI length
sourcepub fn miso_dlen(&self) -> &Reg<MISO_DLEN_SPEC>
pub fn miso_dlen(&self) -> &Reg<MISO_DLEN_SPEC>
0x28 - MISO length
sourcepub fn slave(&self) -> &Reg<SLAVE_SPEC>
pub fn slave(&self) -> &Reg<SLAVE_SPEC>
0x30 - SPI slave control register
sourcepub fn slave1(&self) -> &Reg<SLAVE1_SPEC>
pub fn slave1(&self) -> &Reg<SLAVE1_SPEC>
0x34 - SPI slave control register 1
sourcepub fn slv_wrbuf_dlen(&self) -> &Reg<SLV_WRBUF_DLEN_SPEC>
pub fn slv_wrbuf_dlen(&self) -> &Reg<SLV_WRBUF_DLEN_SPEC>
0x38 - SPI slave Wr_BUF interrupt and CONF control register
sourcepub fn slv_rdbuf_dlen(&self) -> &Reg<SLV_RDBUF_DLEN_SPEC>
pub fn slv_rdbuf_dlen(&self) -> &Reg<SLV_RDBUF_DLEN_SPEC>
0x3c - SPI magic error and slave control register
sourcepub fn slv_rd_byte(&self) -> &Reg<SLV_RD_BYTE_SPEC>
pub fn slv_rd_byte(&self) -> &Reg<SLV_RD_BYTE_SPEC>
0x40 - SPI interrupt control register
sourcepub fn fsm(&self) -> &Reg<FSM_SPEC>
pub fn fsm(&self) -> &Reg<FSM_SPEC>
0x44 - SPI master status and DMA read byte control register
sourcepub fn dma_conf(&self) -> &Reg<DMA_CONF_SPEC>
pub fn dma_conf(&self) -> &Reg<DMA_CONF_SPEC>
0x4c - SPI DMA control register
sourcepub fn dma_out_link(&self) -> &Reg<DMA_OUT_LINK_SPEC>
pub fn dma_out_link(&self) -> &Reg<DMA_OUT_LINK_SPEC>
0x50 - SPI DMA TX link configuration
sourcepub fn dma_in_link(&self) -> &Reg<DMA_IN_LINK_SPEC>
pub fn dma_in_link(&self) -> &Reg<DMA_IN_LINK_SPEC>
0x54 - SPI DMA RX link configuration
sourcepub fn dma_int_ena(&self) -> &Reg<DMA_INT_ENA_SPEC>
pub fn dma_int_ena(&self) -> &Reg<DMA_INT_ENA_SPEC>
0x58 - SPI DMA interrupt enable register
sourcepub fn dma_int_raw(&self) -> &Reg<DMA_INT_RAW_SPEC>
pub fn dma_int_raw(&self) -> &Reg<DMA_INT_RAW_SPEC>
0x5c - SPI DMA interrupt raw register
sourcepub fn dma_int_st(&self) -> &Reg<DMA_INT_ST_SPEC>
pub fn dma_int_st(&self) -> &Reg<DMA_INT_ST_SPEC>
0x60 - SPI DMA interrupt status register
sourcepub fn dma_int_clr(&self) -> &Reg<DMA_INT_CLR_SPEC>
pub fn dma_int_clr(&self) -> &Reg<DMA_INT_CLR_SPEC>
0x64 - SPI DMA interrupt clear register
sourcepub fn in_err_eof_des_addr(&self) -> &Reg<IN_ERR_EOF_DES_ADDR_SPEC>
pub fn in_err_eof_des_addr(&self) -> &Reg<IN_ERR_EOF_DES_ADDR_SPEC>
0x68 - The latest SPI DMA RX descriptor address receiving error
sourcepub fn in_suc_eof_des_addr(&self) -> &Reg<IN_SUC_EOF_DES_ADDR_SPEC>
pub fn in_suc_eof_des_addr(&self) -> &Reg<IN_SUC_EOF_DES_ADDR_SPEC>
0x6c - The latest SPI DMA eof RX descriptor address
sourcepub fn inlink_dscr(&self) -> &Reg<INLINK_DSCR_SPEC>
pub fn inlink_dscr(&self) -> &Reg<INLINK_DSCR_SPEC>
0x70 - Current SPI DMA RX descriptor pointer
sourcepub fn inlink_dscr_bf0(&self) -> &Reg<INLINK_DSCR_BF0_SPEC>
pub fn inlink_dscr_bf0(&self) -> &Reg<INLINK_DSCR_BF0_SPEC>
0x74 - Next SPI DMA RX descriptor pointer
sourcepub fn inlink_dscr_bf1(&self) -> &Reg<INLINK_DSCR_BF1_SPEC>
pub fn inlink_dscr_bf1(&self) -> &Reg<INLINK_DSCR_BF1_SPEC>
0x78 - Current SPI DMA RX buffer pointer
sourcepub fn out_eof_bfr_des_addr(&self) -> &Reg<OUT_EOF_BFR_DES_ADDR_SPEC>
pub fn out_eof_bfr_des_addr(&self) -> &Reg<OUT_EOF_BFR_DES_ADDR_SPEC>
0x7c - The latest SPI DMA eof TX buffer address
sourcepub fn out_eof_des_addr(&self) -> &Reg<OUT_EOF_DES_ADDR_SPEC>
pub fn out_eof_des_addr(&self) -> &Reg<OUT_EOF_DES_ADDR_SPEC>
0x80 - The latest SPI DMA eof TX descriptor address
sourcepub fn outlink_dscr(&self) -> &Reg<OUTLINK_DSCR_SPEC>
pub fn outlink_dscr(&self) -> &Reg<OUTLINK_DSCR_SPEC>
0x84 - Current SPI DMA TX descriptor pointer
sourcepub fn outlink_dscr_bf0(&self) -> &Reg<OUTLINK_DSCR_BF0_SPEC>
pub fn outlink_dscr_bf0(&self) -> &Reg<OUTLINK_DSCR_BF0_SPEC>
0x88 - Next SPI DMA TX descriptor pointer
sourcepub fn outlink_dscr_bf1(&self) -> &Reg<OUTLINK_DSCR_BF1_SPEC>
pub fn outlink_dscr_bf1(&self) -> &Reg<OUTLINK_DSCR_BF1_SPEC>
0x8c - Current SPI DMA TX buffer pointer
sourcepub fn dma_outstatus(&self) -> &Reg<DMA_OUTSTATUS_SPEC>
pub fn dma_outstatus(&self) -> &Reg<DMA_OUTSTATUS_SPEC>
0x90 - SPI DMA TX status
sourcepub fn dma_instatus(&self) -> &Reg<DMA_INSTATUS_SPEC>
pub fn dma_instatus(&self) -> &Reg<DMA_INSTATUS_SPEC>
0x94 - SPI DMA RX status
sourcepub fn din_mode(&self) -> &Reg<DIN_MODE_SPEC>
pub fn din_mode(&self) -> &Reg<DIN_MODE_SPEC>
0xe0 - SPI input delay mode configuration
sourcepub fn din_num(&self) -> &Reg<DIN_NUM_SPEC>
pub fn din_num(&self) -> &Reg<DIN_NUM_SPEC>
0xe4 - SPI input delay number configuration
sourcepub fn dout_mode(&self) -> &Reg<DOUT_MODE_SPEC>
pub fn dout_mode(&self) -> &Reg<DOUT_MODE_SPEC>
0xe8 - SPI output delay mode configuration
sourcepub fn dout_num(&self) -> &Reg<DOUT_NUM_SPEC>
pub fn dout_num(&self) -> &Reg<DOUT_NUM_SPEC>
0xec - SPI output delay number configuration
sourcepub fn lcd_ctrl(&self) -> &Reg<LCD_CTRL_SPEC>
pub fn lcd_ctrl(&self) -> &Reg<LCD_CTRL_SPEC>
0xf0 - LCD frame control register
sourcepub fn lcd_ctrl1(&self) -> &Reg<LCD_CTRL1_SPEC>
pub fn lcd_ctrl1(&self) -> &Reg<LCD_CTRL1_SPEC>
0xf4 - LCD frame control1 register
sourcepub fn lcd_ctrl2(&self) -> &Reg<LCD_CTRL2_SPEC>
pub fn lcd_ctrl2(&self) -> &Reg<LCD_CTRL2_SPEC>
0xf8 - LCD frame control2 register
sourcepub fn lcd_d_mode(&self) -> &Reg<LCD_D_MODE_SPEC>
pub fn lcd_d_mode(&self) -> &Reg<LCD_D_MODE_SPEC>
0xfc - LCD delay number
sourcepub fn lcd_d_num(&self) -> &Reg<LCD_D_NUM_SPEC>
pub fn lcd_d_num(&self) -> &Reg<LCD_D_NUM_SPEC>
0x100 - LCD delay mode
sourcepub fn reg_date(&self) -> &Reg<REG_DATE_SPEC>
pub fn reg_date(&self) -> &Reg<REG_DATE_SPEC>
0x3fc - SPI version control