pub struct SPI3 { /* private fields */ }
Expand description
SPI (Serial Peripheral Interface) Controller 3
Implementations§
source§impl SPI3
impl SPI3
sourcepub const PTR: *const RegisterBlock = {0x3ff65000 as *const spi0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff65000 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_wr_status(&self) -> &SLV_WR_STATUS
pub fn slv_wr_status(&self) -> &SLV_WR_STATUS
0x30 -
sourcepub fn slv_wrbuf_dlen(&self) -> &SLV_WRBUF_DLEN
pub fn slv_wrbuf_dlen(&self) -> &SLV_WRBUF_DLEN
0x48 -
sourcepub fn slv_rdbuf_dlen(&self) -> &SLV_RDBUF_DLEN
pub fn slv_rdbuf_dlen(&self) -> &SLV_RDBUF_DLEN
0x4c -
sourcepub fn cache_fctrl(&self) -> &CACHE_FCTRL
pub fn cache_fctrl(&self) -> &CACHE_FCTRL
0x50 -
sourcepub fn cache_sctrl(&self) -> &CACHE_SCTRL
pub fn cache_sctrl(&self) -> &CACHE_SCTRL
0x54 -
sourcepub fn sram_drd_cmd(&self) -> &SRAM_DRD_CMD
pub fn sram_drd_cmd(&self) -> &SRAM_DRD_CMD
0x5c -
sourcepub fn sram_dwr_cmd(&self) -> &SRAM_DWR_CMD
pub fn sram_dwr_cmd(&self) -> &SRAM_DWR_CMD
0x60 -
sourcepub fn slv_rd_bit(&self) -> &SLV_RD_BIT
pub fn slv_rd_bit(&self) -> &SLV_RD_BIT
0x64 -
sourcepub fn dma_out_link(&self) -> &DMA_OUT_LINK
pub fn dma_out_link(&self) -> &DMA_OUT_LINK
0x104 -
sourcepub fn dma_in_link(&self) -> &DMA_IN_LINK
pub fn dma_in_link(&self) -> &DMA_IN_LINK
0x108 -
sourcepub fn dma_status(&self) -> &DMA_STATUS
pub fn dma_status(&self) -> &DMA_STATUS
0x10c -
sourcepub fn dma_int_ena(&self) -> &DMA_INT_ENA
pub fn dma_int_ena(&self) -> &DMA_INT_ENA
0x110 -
sourcepub fn dma_int_raw(&self) -> &DMA_INT_RAW
pub fn dma_int_raw(&self) -> &DMA_INT_RAW
0x114 -
sourcepub fn dma_int_st(&self) -> &DMA_INT_ST
pub fn dma_int_st(&self) -> &DMA_INT_ST
0x118 -
sourcepub fn dma_int_clr(&self) -> &DMA_INT_CLR
pub fn dma_int_clr(&self) -> &DMA_INT_CLR
0x11c -
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
0x120 -
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
0x124 -
sourcepub fn inlink_dscr(&self) -> &INLINK_DSCR
pub fn inlink_dscr(&self) -> &INLINK_DSCR
0x128 -
sourcepub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
pub fn inlink_dscr_bf0(&self) -> &INLINK_DSCR_BF0
0x12c -
sourcepub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
pub fn inlink_dscr_bf1(&self) -> &INLINK_DSCR_BF1
0x130 -
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
0x134 -
sourcepub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
pub fn out_eof_des_addr(&self) -> &OUT_EOF_DES_ADDR
0x138 -
sourcepub fn outlink_dscr(&self) -> &OUTLINK_DSCR
pub fn outlink_dscr(&self) -> &OUTLINK_DSCR
0x13c -
sourcepub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
pub fn outlink_dscr_bf0(&self) -> &OUTLINK_DSCR_BF0
0x140 -
sourcepub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
pub fn outlink_dscr_bf1(&self) -> &OUTLINK_DSCR_BF1
0x144 -
sourcepub fn dma_rstatus(&self) -> &DMA_RSTATUS
pub fn dma_rstatus(&self) -> &DMA_RSTATUS
0x148 -
sourcepub fn dma_tstatus(&self) -> &DMA_TSTATUS
pub fn dma_tstatus(&self) -> &DMA_TSTATUS
0x14c -