Struct nrf51_pac::gpio::RegisterBlock
source · [−]#[repr(C)]pub struct RegisterBlock {
pub out: Reg<OUT_SPEC>,
pub outset: Reg<OUTSET_SPEC>,
pub outclr: Reg<OUTCLR_SPEC>,
pub in_: Reg<IN_SPEC>,
pub dir: Reg<DIR_SPEC>,
pub dirset: Reg<DIRSET_SPEC>,
pub dirclr: Reg<DIRCLR_SPEC>,
pub pin_cnf: [Reg<PIN_CNF_SPEC>; 32],
/* private fields */
}
Expand description
Register block
Fields
out: Reg<OUT_SPEC>
0x504 - Write GPIO port.
outset: Reg<OUTSET_SPEC>
0x508 - Set individual bits in GPIO port.
outclr: Reg<OUTCLR_SPEC>
0x50c - Clear individual bits in GPIO port.
in_: Reg<IN_SPEC>
0x510 - Read GPIO port.
dir: Reg<DIR_SPEC>
0x514 - Direction of GPIO pins.
dirset: Reg<DIRSET_SPEC>
0x518 - DIR set register.
dirclr: Reg<DIRCLR_SPEC>
0x51c - DIR clear register.
pin_cnf: [Reg<PIN_CNF_SPEC>; 32]
0x700..0x780 - 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more