Struct hpm5361_pac::GPIO0
source · pub struct GPIO0 { /* private fields */ }
Expand description
GPIO0
Implementations§
source§impl GPIO0
impl GPIO0
sourcepub const PTR: *const RegisterBlock = {0xf00d0000 as *const fgpio::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xf00d0000 as *const fgpio::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 di_iter(&self) -> impl Iterator<Item = &DI>
pub fn di_iter(&self) -> impl Iterator<Item = &DI>
Iterator for array of: 0x00..0x3c - no description available
sourcepub fn do__iter(&self) -> impl Iterator<Item = &DO>
pub fn do__iter(&self) -> impl Iterator<Item = &DO>
Iterator for array of: 0x100..0x1f0 - no description available
sourcepub fn oe_iter(&self) -> impl Iterator<Item = &OE>
pub fn oe_iter(&self) -> impl Iterator<Item = &OE>
Iterator for array of: 0x200..0x2f0 - no description available
sourcepub fn if__iter(&self) -> impl Iterator<Item = &IF>
pub fn if__iter(&self) -> impl Iterator<Item = &IF>
Iterator for array of: 0x300..0x33c - no description available
sourcepub fn ie_iter(&self) -> impl Iterator<Item = &IE>
pub fn ie_iter(&self) -> impl Iterator<Item = &IE>
Iterator for array of: 0x400..0x4f0 - no description available
sourcepub fn pl_iter(&self) -> impl Iterator<Item = &PL>
pub fn pl_iter(&self) -> impl Iterator<Item = &PL>
Iterator for array of: 0x500..0x5f0 - no description available
sourcepub fn tp_iter(&self) -> impl Iterator<Item = &TP>
pub fn tp_iter(&self) -> impl Iterator<Item = &TP>
Iterator for array of: 0x600..0x6f0 - no description available
sourcepub fn as__iter(&self) -> impl Iterator<Item = &AS>
pub fn as__iter(&self) -> impl Iterator<Item = &AS>
Iterator for array of: 0x700..0x7f0 - no description available