Struct rp2040_pac::SPI0
source · pub struct SPI0 { /* private fields */ }
Expand description
SPI0
Implementations§
source§impl SPI0
impl SPI0
sourcepub const PTR: *const RegisterBlock = {0x4003c000 as *const spi0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4003c000 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 sspimsc(&self) -> &SSPIMSC
pub fn sspimsc(&self) -> &SSPIMSC
0x14 - Interrupt mask set or clear register, SSPIMSC on page 3-9
sourcepub fn sspperiphid0(&self) -> &SSPPERIPHID0
pub fn sspperiphid0(&self) -> &SSPPERIPHID0
0xfe0 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13
sourcepub fn sspperiphid1(&self) -> &SSPPERIPHID1
pub fn sspperiphid1(&self) -> &SSPPERIPHID1
0xfe4 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13
sourcepub fn sspperiphid2(&self) -> &SSPPERIPHID2
pub fn sspperiphid2(&self) -> &SSPPERIPHID2
0xfe8 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13
sourcepub fn sspperiphid3(&self) -> &SSPPERIPHID3
pub fn sspperiphid3(&self) -> &SSPPERIPHID3
0xfec - Peripheral identification registers, SSPPeriphID0-3 on page 3-13
sourcepub fn ssppcellid0(&self) -> &SSPPCELLID0
pub fn ssppcellid0(&self) -> &SSPPCELLID0
0xff0 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16
sourcepub fn ssppcellid1(&self) -> &SSPPCELLID1
pub fn ssppcellid1(&self) -> &SSPPCELLID1
0xff4 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16
sourcepub fn ssppcellid2(&self) -> &SSPPCELLID2
pub fn ssppcellid2(&self) -> &SSPPCELLID2
0xff8 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16
sourcepub fn ssppcellid3(&self) -> &SSPPCELLID3
pub fn ssppcellid3(&self) -> &SSPPCELLID3
0xffc - PrimeCell identification registers, SSPPCellID0-3 on page 3-16