Struct lpc82x::gpio_port::RegisterBlock
[−]
[src]
#[repr(C)]pub struct RegisterBlock { pub b: [B; 29], pub w: [W; 29], pub dir0: DIR0, pub mask0: MASK0, pub pin0: PIN0, pub mpin0: MPIN0, pub set0: SET0, pub clr0: CLR0, pub not0: NOT0, pub dirset0: DIRSET0, pub dirclr0: DIRCLR0, pub dirnot0: DIRNOT0, // some fields omitted }
Register block
Fields
b: [B; 29]
0x00 - Byte pin registers port 0; pins PIO0_0 to PIO0_28
w: [W; 29]
0x1000 - Word pin registers port 0
dir0: DIR0
0x2000 - Direction registers port 0
mask0: MASK0
0x2080 - Mask register port 0
pin0: PIN0
0x2100 - Port pin register port 0
mpin0: MPIN0
0x2180 - Masked port register port 0
set0: SET0
0x2200 - Write: Set register for port 0 Read: output bits for port 0
clr0: CLR0
0x2280 - Clear port 0
not0: NOT0
0x2300 - Toggle port 0
dirset0: DIRSET0
0x2380 - Set pin direction bits for port 0.
dirclr0: DIRCLR0
0x2400 - Clear pin direction bits for port 0.
dirnot0: DIRNOT0
0x2480 - Toggle pin direction bits for port 0.