pub struct SPI1 { /* private fields */ }
Expand description
SPI (Serial Peripheral Interface) Controller 1
Implementations§
source§impl SPI1
impl SPI1
sourcepub const PTR: *const RegisterBlock = {0x60002000 as *const spi1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60002000 as *const spi1::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 cache_fctrl(&self) -> &CACHE_FCTRL
pub fn cache_fctrl(&self) -> &CACHE_FCTRL
0x3c - SPI1 bit mode control register.
sourcepub fn flash_waiti_ctrl(&self) -> &FLASH_WAITI_CTRL
pub fn flash_waiti_ctrl(&self) -> &FLASH_WAITI_CTRL
0x98 - SPI1 wait idle control register
sourcepub fn flash_sus_ctrl(&self) -> &FLASH_SUS_CTRL
pub fn flash_sus_ctrl(&self) -> &FLASH_SUS_CTRL
0x9c - SPI1 flash suspend control register
sourcepub fn flash_sus_cmd(&self) -> &FLASH_SUS_CMD
pub fn flash_sus_cmd(&self) -> &FLASH_SUS_CMD
0xa0 - SPI1 flash suspend command register
sourcepub fn sus_status(&self) -> &SUS_STATUS
pub fn sus_status(&self) -> &SUS_STATUS
0xa4 - SPI1 flash suspend status register
sourcepub fn timing_cali(&self) -> &TIMING_CALI
pub fn timing_cali(&self) -> &TIMING_CALI
0xa8 - SPI1 timing control register
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0xdc - SPI1 clk_gate register