pub struct Secgpio { /* private fields */ }Expand description
LPC-Next0 General Purpose I/O (GPIO)
Implementations§
Source§impl Secgpio
impl Secgpio
Sourcepub const PTR: *const RegisterBlock = {0x40154000 as *const gpio::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40154000 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 b_iter(&self) -> impl Iterator<Item = &B>
pub fn b_iter(&self) -> impl Iterator<Item = &B>
Iterator for array of: 0x00..0x100 - no description available
Sourcepub fn w_iter(&self) -> impl Iterator<Item = &W>
pub fn w_iter(&self) -> impl Iterator<Item = &W>
Iterator for array of: 0x1000..0x1400 - no description available
Sourcepub fn dir_iter(&self) -> impl Iterator<Item = &Dir>
pub fn dir_iter(&self) -> impl Iterator<Item = &Dir>
Iterator for array of: 0x2000..0x2020 - Direction registers
Sourcepub fn mask_iter(&self) -> impl Iterator<Item = &Mask>
pub fn mask_iter(&self) -> impl Iterator<Item = &Mask>
Iterator for array of: 0x2080..0x20a0 - Mask register
Sourcepub fn pin_iter(&self) -> impl Iterator<Item = &Pin>
pub fn pin_iter(&self) -> impl Iterator<Item = &Pin>
Iterator for array of: 0x2100..0x2120 - Port pin register
Sourcepub fn mpin_iter(&self) -> impl Iterator<Item = &Mpin>
pub fn mpin_iter(&self) -> impl Iterator<Item = &Mpin>
Iterator for array of: 0x2180..0x21a0 - Masked port register
Sourcepub fn set(&self, n: usize) -> &Set
pub fn set(&self, n: usize) -> &Set
0x2200..0x2220 - Write: Set register for port Read: output bits for port
Sourcepub fn set_iter(&self) -> impl Iterator<Item = &Set>
pub fn set_iter(&self) -> impl Iterator<Item = &Set>
Iterator for array of: 0x2200..0x2220 - Write: Set register for port Read: output bits for port
Sourcepub fn clr_iter(&self) -> impl Iterator<Item = &Clr>
pub fn clr_iter(&self) -> impl Iterator<Item = &Clr>
Iterator for array of: 0x2280..0x22a0 - Clear port
Sourcepub fn not_iter(&self) -> impl Iterator<Item = &Not>
pub fn not_iter(&self) -> impl Iterator<Item = &Not>
Iterator for array of: 0x2300..0x2320 - Toggle port
Sourcepub fn dirset_iter(&self) -> impl Iterator<Item = &Dirset>
pub fn dirset_iter(&self) -> impl Iterator<Item = &Dirset>
Iterator for array of: 0x2380..0x23a0 - Set pin direction bits for port
Sourcepub fn dirclr_iter(&self) -> impl Iterator<Item = &Dirclr>
pub fn dirclr_iter(&self) -> impl Iterator<Item = &Dirclr>
Iterator for array of: 0x2400..0x2420 - Clear pin direction bits for port
Sourcepub fn dirnot_iter(&self) -> impl Iterator<Item = &Dirnot>
pub fn dirnot_iter(&self) -> impl Iterator<Item = &Dirnot>
Iterator for array of: 0x2480..0x24a0 - Toggle pin direction bits for port
Sourcepub fn intena_iter(&self) -> impl Iterator<Item = &Intena>
pub fn intena_iter(&self) -> impl Iterator<Item = &Intena>
Iterator for array of: 0x2500..0x2520 - interrupt A enable control register
Sourcepub fn intenb_iter(&self) -> impl Iterator<Item = &Intenb>
pub fn intenb_iter(&self) -> impl Iterator<Item = &Intenb>
Iterator for array of: 0x2580..0x25a0 - interrupt B enable control register
Sourcepub fn intpol_iter(&self) -> impl Iterator<Item = &Intpol>
pub fn intpol_iter(&self) -> impl Iterator<Item = &Intpol>
Iterator for array of: 0x2600..0x2620 - interupt polarity control register
Sourcepub fn intedg_iter(&self) -> impl Iterator<Item = &Intedg>
pub fn intedg_iter(&self) -> impl Iterator<Item = &Intedg>
Iterator for array of: 0x2680..0x26a0 - choose edge or level for interrupt
Sourcepub fn intstata(&self, n: usize) -> &Intstata
pub fn intstata(&self, n: usize) -> &Intstata
0x2700..0x2720 - interrupt status for interrupt A
Sourcepub fn intstata_iter(&self) -> impl Iterator<Item = &Intstata>
pub fn intstata_iter(&self) -> impl Iterator<Item = &Intstata>
Iterator for array of: 0x2700..0x2720 - interrupt status for interrupt A
Sourcepub fn intstatb(&self, n: usize) -> &Intstatb
pub fn intstatb(&self, n: usize) -> &Intstatb
0x2780..0x27a0 - interrupt status for interrupt B
Sourcepub fn intstatb_iter(&self) -> impl Iterator<Item = &Intstatb>
pub fn intstatb_iter(&self) -> impl Iterator<Item = &Intstatb>
Iterator for array of: 0x2780..0x27a0 - interrupt status for interrupt B