Struct nrf52840_pac::p0::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 pin_cnf: [PIN_CNF; 32],
/* private fields */
}
Expand description
Register block
Fields§
§out: OUT
0x504 - Write GPIO port
outset: OUTSET
0x508 - Set individual bits in GPIO port
outclr: OUTCLR
0x50c - Clear individual bits in GPIO port
in_: IN
0x510 - Read GPIO port
dir: DIR
0x514 - Direction of GPIO pins
dirset: DIRSET
0x518 - DIR set register
dirclr: DIRCLR
0x51c - DIR clear register
latch: LATCH
0x520 - Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers
detectmode: DETECTMODE
0x524 - 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