pub struct SPI3 { /* private fields */ }
Expand description
SPI (Serial Peripheral Interface) Controller 3
Implementations§
Source§impl SPI3
impl SPI3
Sourcepub const PTR: *const RegisterBlock = {0x3f425000 as *const spi0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f425000 as *const spi0::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn slv_wrbuf_dlen(&self) -> &SLV_WRBUF_DLEN
pub fn slv_wrbuf_dlen(&self) -> &SLV_WRBUF_DLEN
0x38 - SPI slave Wr_BUF interrupt and CONF control register
Sourcepub fn slv_rdbuf_dlen(&self) -> &SLV_RDBUF_DLEN
pub fn slv_rdbuf_dlen(&self) -> &SLV_RDBUF_DLEN
0x3c - SPI magic error and slave control register
Sourcepub fn cache_sctrl(&self) -> &CACHE_SCTRL
pub fn cache_sctrl(&self) -> &CACHE_SCTRL
0x40 - SPI Memory Cache SCTRL Register
Sourcepub fn slv_rd_byte(&self) -> &SLV_RD_BYTE
pub fn slv_rd_byte(&self) -> &SLV_RD_BYTE
0x40 - SPI interrupt control register
Sourcepub fn sram_drd_cmd(&self) -> &SRAM_DRD_CMD
pub fn sram_drd_cmd(&self) -> &SRAM_DRD_CMD
0x48 - SPI Memory SRAM DRD CMD Register
Sourcepub fn sram_dwr_cmd(&self) -> &SRAM_DWR_CMD
pub fn sram_dwr_cmd(&self) -> &SRAM_DWR_CMD
0x4c - SPI Memory SRAM DWR CMD Register
Sourcepub fn dma_out_link(&self) -> &DMA_OUT_LINK
pub fn dma_out_link(&self) -> &DMA_OUT_LINK
0x50 - SPI DMA TX link configuration
Sourcepub fn dma_in_link(&self) -> &DMA_IN_LINK
pub fn dma_in_link(&self) -> &DMA_IN_LINK
0x54 - SPI DMA RX link configuration
Sourcepub fn dma_int_ena(&self) -> &DMA_INT_ENA
pub fn dma_int_ena(&self) -> &DMA_INT_ENA
0x58 - SPI DMA interrupt enable register
Sourcepub fn dma_int_raw(&self) -> &DMA_INT_RAW
pub fn dma_int_raw(&self) -> &DMA_INT_RAW
0x5c - SPI DMA interrupt raw register
Sourcepub fn dma_int_st(&self) -> &DMA_INT_ST
pub fn dma_int_st(&self) -> &DMA_INT_ST
0x60 - SPI DMA interrupt status register
Sourcepub fn dma_int_clr(&self) -> &DMA_INT_CLR
pub fn dma_int_clr(&self) -> &DMA_INT_CLR
0x64 - SPI DMA interrupt clear register
Sourcepub fn in_err_eof_des_addr(&self) -> &IN_ERR_EOF_DES_ADDR
pub fn in_err_eof_des_addr(&self) -> &IN_ERR_EOF_DES_ADDR
0x68 - The latest SPI DMA RX descriptor address receiving error
Sourcepub fn in_suc_eof_des_addr(&self) -> &IN_SUC_EOF_DES_ADDR
pub fn in_suc_eof_des_addr(&self) -> &IN_SUC_EOF_DES_ADDR
0x6c - The latest SPI DMA eof RX descriptor address
Sourcepub fn inlink_dscr(&self) -> &INLINK_DSCR
pub fn inlink_dscr(&self) -> &INLINK_DSCR
0x70 - Current SPI DMA RX descriptor pointer
Sourcepub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
pub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
0x74 - Next SPI DMA RX descriptor pointer
Sourcepub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
pub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
0x78 - Current SPI DMA RX buffer pointer
Sourcepub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
pub fn out_eof_bfr_des_addr(&self) -> &OUT_EOF_BFR_DES_ADDR
0x7c - The latest SPI DMA eof TX buffer address
Sourcepub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
pub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
0x80 - The latest SPI DMA eof TX descriptor address
Sourcepub fn outlink_dscr(&self) -> &OUTLINK_DSCR
pub fn outlink_dscr(&self) -> &OUTLINK_DSCR
0x84 - Current SPI DMA TX descriptor pointer
Sourcepub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
pub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
0x88 - Next SPI DMA TX descriptor pointer
Sourcepub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
pub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
0x8c - Current SPI DMA TX buffer pointer
Sourcepub fn dma_outstatus(&self) -> &DMA_OUTSTATUS
pub fn dma_outstatus(&self) -> &DMA_OUTSTATUS
0x90 - SPI DMA TX status
Sourcepub fn dma_instatus(&self) -> &DMA_INSTATUS
pub fn dma_instatus(&self) -> &DMA_INSTATUS
0x94 - SPI DMA RX status
Sourcepub fn w_iter(&self) -> impl Iterator<Item = &W>
pub fn w_iter(&self) -> impl Iterator<Item = &W>
Iterator for array of: 0x98..0xe0 - Data buffer %s
Sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0xdc - SPI Memory Clock Gate Register
Sourcepub fn lcd_d_mode(&self) -> &LCD_D_MODE
pub fn lcd_d_mode(&self) -> &LCD_D_MODE
0xfc - LCD delay number