pub struct Gpio { /* private fields */ }Expand description
GPIO.
Implementations§
Source§impl Gpio
impl Gpio
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn giclr(self) -> Reg<Gichr, RW>
pub const fn giclr(self) -> Reg<Gichr, RW>
Global Interrupt Control Low. GIWE selects pins 0-15; GIWD is written to ICR[31:16] on each selected pin, subject to access protection and locking. Writes follow ICR field semantics: GIWD bit 8 is written to ISF (W1C), so 0 leaves ISF unchanged and 1 clears it; other configuration bits follow their own field semantics. Only 32-bit writes take effect. The map specifies RW, but functional text calls this write-only with reads returning zero; do not rely on read-modify-write.
Sourcepub const fn gichr(self) -> Reg<Gichr, RW>
pub const fn gichr(self) -> Reg<Gichr, RW>
Global Interrupt Control High. GIWE selects pins 16-31; GIWD is written to ICR[31:16] on each selected pin, subject to access protection and locking. Writes follow ICR field semantics: GIWD bit 8 is written to ISF (W1C), so 0 leaves ISF unchanged and 1 clears it; other configuration bits follow their own field semantics. Only 32-bit writes take effect. The map specifies RW, but functional text calls this write-only with reads returning zero; do not rely on read-modify-write.