pub struct GPIO { /* private fields */ }Expand description
Gerneral Purpose Input/Output
Implementations§
Source§impl GPIO
impl GPIO
Sourcepub const PTR: *const RegisterBlock = {0x2000000 as *const gpio::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2000000 as *const gpio::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 pb_eint_cfg0(&self) -> &PB_EINT_CFG0
pub fn pb_eint_cfg0(&self) -> &PB_EINT_CFG0
0x220 - PB External Interrupt Configure Register 0
Sourcepub fn pb_eint_cfg1(&self) -> &PB_EINT_CFG1
pub fn pb_eint_cfg1(&self) -> &PB_EINT_CFG1
0x224 - PB External Interrupt Configure Register 1
Sourcepub fn pb_eint_ctl(&self) -> &PB_EINT_CTL
pub fn pb_eint_ctl(&self) -> &PB_EINT_CTL
0x230 - PB External Interrupt Control Register
Sourcepub fn pb_eint_status(&self) -> &PB_EINT_STATUS
pub fn pb_eint_status(&self) -> &PB_EINT_STATUS
0x234 - PB External Interrupt Status Register
Sourcepub fn pb_eint_deb(&self) -> &PB_EINT_DEB
pub fn pb_eint_deb(&self) -> &PB_EINT_DEB
0x238 - PB External Interrupt Debounce Register
Sourcepub fn pc_eint_cfg0(&self) -> &PC_EINT_CFG0
pub fn pc_eint_cfg0(&self) -> &PC_EINT_CFG0
0x240 - PC External Interrupt Configure Register 0
Sourcepub fn pc_eint_ctl(&self) -> &PC_EINT_CTL
pub fn pc_eint_ctl(&self) -> &PC_EINT_CTL
0x250 - PC External Interrupt Control Register
Sourcepub fn pc_eint_status(&self) -> &PC_EINT_STATUS
pub fn pc_eint_status(&self) -> &PC_EINT_STATUS
0x254 - PC External Interrupt Status Register
Sourcepub fn pc_eint_deb(&self) -> &PC_EINT_DEB
pub fn pc_eint_deb(&self) -> &PC_EINT_DEB
0x258 - PC External Interrupt Debounce Register
Sourcepub fn pd_eint_cfg0(&self) -> &PD_EINT_CFG0
pub fn pd_eint_cfg0(&self) -> &PD_EINT_CFG0
0x260 - PD External Interrupt Configure Register 0
Sourcepub fn pd_eint_cfg1(&self) -> &PD_EINT_CFG1
pub fn pd_eint_cfg1(&self) -> &PD_EINT_CFG1
0x264 - PD External Interrupt Configure Register 1
Sourcepub fn pd_eint_cfg2(&self) -> &PD_EINT_CFG2
pub fn pd_eint_cfg2(&self) -> &PD_EINT_CFG2
0x268 - PD External Interrupt Configure Register 2
Sourcepub fn pd_eint_ctl(&self) -> &PD_EINT_CTL
pub fn pd_eint_ctl(&self) -> &PD_EINT_CTL
0x270 - PD External Interrupt Control Register
Sourcepub fn pd_eint_status(&self) -> &PD_EINT_STATUS
pub fn pd_eint_status(&self) -> &PD_EINT_STATUS
0x274 - PD External Interrupt Status Register
Sourcepub fn pd_eint_deb(&self) -> &PD_EINT_DEB
pub fn pd_eint_deb(&self) -> &PD_EINT_DEB
0x278 - PD External Interrupt Debounce Register
Sourcepub fn pe_eint_cfg0(&self) -> &PE_EINT_CFG0
pub fn pe_eint_cfg0(&self) -> &PE_EINT_CFG0
0x280 - PE External Interrupt Configure Register 0
Sourcepub fn pe_eint_cfg1(&self) -> &PE_EINT_CFG1
pub fn pe_eint_cfg1(&self) -> &PE_EINT_CFG1
0x284 - PE External Interrupt Configure Register 1
Sourcepub fn pe_eint_cfg2(&self) -> &PE_EINT_CFG2
pub fn pe_eint_cfg2(&self) -> &PE_EINT_CFG2
0x288 - PE External Interrupt Configure Register 2
Sourcepub fn pe_eint_ctl(&self) -> &PE_EINT_CTL
pub fn pe_eint_ctl(&self) -> &PE_EINT_CTL
0x290 - PE External Interrupt Control Register
Sourcepub fn pe_eint_status(&self) -> &PE_EINT_STATUS
pub fn pe_eint_status(&self) -> &PE_EINT_STATUS
0x294 - PE External Interrupt Status Register
Sourcepub fn pe_eint_deb(&self) -> &PE_EINT_DEB
pub fn pe_eint_deb(&self) -> &PE_EINT_DEB
0x298 - PE External Interrupt Debounce Register
Sourcepub fn pf_eint_cfg0(&self) -> &PF_EINT_CFG0
pub fn pf_eint_cfg0(&self) -> &PF_EINT_CFG0
0x2a0 - PF External Interrupt Configure Register 0
Sourcepub fn pf_eint_ctl(&self) -> &PF_EINT_CTL
pub fn pf_eint_ctl(&self) -> &PF_EINT_CTL
0x2b0 - PF External Interrupt Control Register
Sourcepub fn pf_eint_status(&self) -> &PF_EINT_STATUS
pub fn pf_eint_status(&self) -> &PF_EINT_STATUS
0x2b4 - PF External Interrupt Status Register
Sourcepub fn pf_eint_deb(&self) -> &PF_EINT_DEB
pub fn pf_eint_deb(&self) -> &PF_EINT_DEB
0x2b8 - PF External Interrupt Debounce Register
Sourcepub fn pg_eint_cfg0(&self) -> &PG_EINT_CFG0
pub fn pg_eint_cfg0(&self) -> &PG_EINT_CFG0
0x2c0 - PG External Interrupt Configure Register 0
Sourcepub fn pg_eint_cfg1(&self) -> &PG_EINT_CFG1
pub fn pg_eint_cfg1(&self) -> &PG_EINT_CFG1
0x2c4 - PG External Interrupt Configure Register 1
Sourcepub fn pg_eint_cfg2(&self) -> &PG_EINT_CFG2
pub fn pg_eint_cfg2(&self) -> &PG_EINT_CFG2
0x2c8 - PG External Interrupt Configure Register 2
Sourcepub fn pg_eint_ctl(&self) -> &PG_EINT_CTL
pub fn pg_eint_ctl(&self) -> &PG_EINT_CTL
0x2d0 - PG External Interrupt Control Register
Sourcepub fn pg_eint_status(&self) -> &PG_EINT_STATUS
pub fn pg_eint_status(&self) -> &PG_EINT_STATUS
0x2d4 - PG External Interrupt Status Register
Sourcepub fn pg_eint_deb(&self) -> &PG_EINT_DEB
pub fn pg_eint_deb(&self) -> &PG_EINT_DEB
0x2d8 - PG External Interrupt Debounce Register
Sourcepub fn pio_pow_mod_sel(&self) -> &PIO_POW_MOD_SEL
pub fn pio_pow_mod_sel(&self) -> &PIO_POW_MOD_SEL
0x340 - PIO Group Withstand Voltage Mode Select Register
Sourcepub fn pio_pow_ms_ctl(&self) -> &PIO_POW_MS_CTL
pub fn pio_pow_ms_ctl(&self) -> &PIO_POW_MS_CTL
0x344 - PIO Group Withstand Voltage Mode Select Control Register
Sourcepub fn pio_pow_val(&self) -> &PIO_POW_VAL
pub fn pio_pow_val(&self) -> &PIO_POW_VAL
0x348 - PIO Group Power Value Register
Sourcepub fn pio_pow_vol_sel_ctl(&self) -> &PIO_POW_VOL_SEL_CTL
pub fn pio_pow_vol_sel_ctl(&self) -> &PIO_POW_VOL_SEL_CTL
0x350 - PIO Group Power Voltage Select Control Register