#[repr(C)]
pub struct RegisterBlock { pub out: OUT, pub outset: OUTSET, pub outclr: OUTCLR, pub in_: IN, pub dir: DIR, pub dirset: DIRSET, pub dirclr: DIRCLR, pub latch: LATCH, pub detectmode: DETECTMODE, pub detectmode_sec: DETECTMODE_SEC, pub pin_cnf: [PIN_CNF; 32], /* private fields */ }
Expand description

Register block

Fields

out: OUT

0x04 - Write GPIO port

outset: OUTSET

0x08 - Set individual bits in GPIO port

outclr: OUTCLR

0x0c - Clear individual bits in GPIO port

in_: IN

0x10 - Read GPIO port

dir: DIR

0x14 - Direction of GPIO pins

dirset: DIRSET

0x18 - DIR set register

dirclr: DIRCLR

0x1c - DIR clear register

latch: LATCH

0x20 - Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers

detectmode: DETECTMODE

0x24 - Select between default DETECT signal behavior and LDETECT mode (For non-secure pin only)

detectmode_sec: DETECTMODE_SEC

0x28 - Select between default DETECT signal behavior and LDETECT mode (For secure pin only)

pin_cnf: [PIN_CNF; 32]

0x200..0x280 - Description collection: Configuration of GPIO pins

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.