#[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 pin_cnf: [PIN_CNF; 32],
/* private fields */
}Expand description
Register block
Fields§
§out: OUT0x504 - Write GPIO port
outset: OUTSET0x508 - Set individual bits in GPIO port
outclr: OUTCLR0x50c - Clear individual bits in GPIO port
in_: IN0x510 - Read GPIO port
dir: DIR0x514 - Direction of GPIO pins
dirset: DIRSET0x518 - DIR set register
dirclr: DIRCLR0x51c - DIR clear register
latch: LATCH0x520 - Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers
detectmode: DETECTMODE0x524 - Select between default DETECT signal behaviour and LDETECT mode
pin_cnf: [PIN_CNF; 32]0x700..0x780 - Description collection[n]: Configuration of GPIO pins
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more