Struct microbit::hal::pac::p0::RegisterBlock [−]
#[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: 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
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.