Struct nrf91::p0_ns::RegisterBlock
source · #[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 behaviour and LDETECT mode (For non-secure pin only)
detectmode_sec: DETECTMODE_SEC
0x28 - Select between default DETECT signal behaviour and LDETECT mode (For secure pin only)
pin_cnf: [PIN_CNF; 32]
0x200 - Description collection: Configuration of GPIO pins
Auto Trait Implementations
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more