pub struct SPI2 { /* private fields */ }
Expand description
SPI (Serial Peripheral Interface) Controller 2
Implementations§
source§impl SPI2
impl SPI2
sourcepub const PTR: *const RegisterBlock = {0x60024000 as *const spi2::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60024000 as *const spi2::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 dma_int_ena(&self) -> &DMA_INT_ENA
pub fn dma_int_ena(&self) -> &DMA_INT_ENA
0x34 - SPI DMA interrupt enable register
sourcepub fn dma_int_clr(&self) -> &DMA_INT_CLR
pub fn dma_int_clr(&self) -> &DMA_INT_CLR
0x38 - SPI DMA interrupt clear register
sourcepub fn dma_int_raw(&self) -> &DMA_INT_RAW
pub fn dma_int_raw(&self) -> &DMA_INT_RAW
0x3c - SPI DMA interrupt raw register
sourcepub fn dma_int_st(&self) -> &DMA_INT_ST
pub fn dma_int_st(&self) -> &DMA_INT_ST
0x40 - SPI DMA interrupt status register