pub struct Spi3 { /* private fields */ }
Expand description
LPC_Next0 Serial Peripheral Interfaces (SPI)
Implementations§
Source§impl Spi3
impl Spi3
Sourcepub const PTR: *const RegisterBlock = {0x40109000 as *const spi0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40109000 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 stat(&self) -> &Stat
pub fn stat(&self) -> &Stat
0x408 - SPI Status. Some status flags can be cleared by writing a 1 to that bit position.
Sourcepub fn intenset(&self) -> &Intenset
pub fn intenset(&self) -> &Intenset
0x40c - SPI Interrupt Enable read and Set. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set.
Sourcepub fn intenclr(&self) -> &Intenclr
pub fn intenclr(&self) -> &Intenclr
0x410 - SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the corresponding bit in INTENSET to be cleared.
Sourcepub fn fifotrig(&self) -> &Fifotrig
pub fn fifotrig(&self) -> &Fifotrig
0xe08 - FIFO trigger settings for interrupt and DMA request.
Sourcepub fn fifointenset(&self) -> &Fifointenset
pub fn fifointenset(&self) -> &Fifointenset
0xe10 - FIFO interrupt enable set (enable) and read register.
Sourcepub fn fifointenclr(&self) -> &Fifointenclr
pub fn fifointenclr(&self) -> &Fifointenclr
0xe14 - FIFO interrupt enable clear (disable) and read register.
Sourcepub fn fifointstat(&self) -> &Fifointstat
pub fn fifointstat(&self) -> &Fifointstat
0xe18 - FIFO interrupt status register.
Sourcepub fn fifordnopop(&self) -> &Fifordnopop
pub fn fifordnopop(&self) -> &Fifordnopop
0xe40 - FIFO data read with no FIFO pop.