Struct nrf52832_hal::pac::p0::RegisterBlock [−][src]
#[repr(C)]pub struct RegisterBlock { pub out: Reg<u32, _OUT>, pub outset: Reg<u32, _OUTSET>, pub outclr: Reg<u32, _OUTCLR>, pub in_: Reg<u32, _IN>, pub dir: Reg<u32, _DIR>, pub dirset: Reg<u32, _DIRSET>, pub dirclr: Reg<u32, _DIRCLR>, pub latch: Reg<u32, _LATCH>, pub detectmode: Reg<u32, _DETECTMODE>, pub pin_cnf: [Reg<u32, _PIN_CNF>; 32], // some fields omitted }
Expand description
Register block
Fields
out: Reg<u32, _OUT>
0x504 - Write GPIO port
outset: Reg<u32, _OUTSET>
0x508 - Set individual bits in GPIO port
outclr: Reg<u32, _OUTCLR>
0x50c - Clear individual bits in GPIO port
in_: Reg<u32, _IN>
0x510 - Read GPIO port
dir: Reg<u32, _DIR>
0x514 - Direction of GPIO pins
dirset: Reg<u32, _DIRSET>
0x518 - DIR set register
dirclr: Reg<u32, _DIRCLR>
0x51c - DIR clear register
latch: Reg<u32, _LATCH>
0x520 - Latch register indicating what GPIO pins that have met the criteria set in the PIN_CNF[n].SENSE registers
detectmode: Reg<u32, _DETECTMODE>
0x524 - Select between default DETECT signal behaviour and LDETECT mode
pin_cnf: [Reg<u32, _PIN_CNF>; 32]
0x700 - Description collection[0]: Configuration of GPIO pins
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CheckedAs for T
[src]
impl<T> CheckedAs for T
[src]pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]Casts the value.
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]pub fn lossless_try_into(self) -> Option<Dst>
[src]
pub fn lossless_try_into(self) -> Option<Dst>
[src]Performs the conversion.
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]pub fn lossy_into(self) -> Dst
[src]
pub fn lossy_into(self) -> Dst
[src]Performs the conversion.
impl<T> OverflowingAs for T
[src]
impl<T> OverflowingAs for T
[src]pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]Casts the value.
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
impl<T> SaturatingAs for T
[src]pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]Casts the value.
impl<T> UnwrappedAs for T
[src]
impl<T> UnwrappedAs for T
[src]pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]Casts the value.
impl<T> WrappingAs for T
[src]
impl<T> WrappingAs for T
[src]pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]Casts the value.