Struct rp2040_pac::PADS_QSPI
source · pub struct PADS_QSPI { /* private fields */ }
Expand description
PADS_QSPI
Implementations§
source§impl PADS_QSPI
impl PADS_QSPI
sourcepub const PTR: *const RegisterBlock = {0x40020000 as *const pads_qspi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40020000 as *const pads_qspi::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 voltage_select(&self) -> &VOLTAGE_SELECT
pub fn voltage_select(&self) -> &VOLTAGE_SELECT
0x00 - Voltage select. Per bank control
sourcepub fn gpio_qspi_sclk(&self) -> &GPIO_QSPI_SCLK
pub fn gpio_qspi_sclk(&self) -> &GPIO_QSPI_SCLK
0x04 - Pad control register
sourcepub fn gpio_qspi_sd0(&self) -> &GPIO_QSPI_SD0
pub fn gpio_qspi_sd0(&self) -> &GPIO_QSPI_SD0
0x08 - Pad control register
sourcepub fn gpio_qspi_sd1(&self) -> &GPIO_QSPI_SD1
pub fn gpio_qspi_sd1(&self) -> &GPIO_QSPI_SD1
0x0c - Pad control register
sourcepub fn gpio_qspi_sd2(&self) -> &GPIO_QSPI_SD2
pub fn gpio_qspi_sd2(&self) -> &GPIO_QSPI_SD2
0x10 - Pad control register
sourcepub fn gpio_qspi_sd3(&self) -> &GPIO_QSPI_SD3
pub fn gpio_qspi_sd3(&self) -> &GPIO_QSPI_SD3
0x14 - Pad control register
sourcepub fn gpio_qspi_ss(&self) -> &GPIO_QSPI_SS
pub fn gpio_qspi_ss(&self) -> &GPIO_QSPI_SS
0x18 - Pad control register