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

0x00 - Byte pin registers port 0; pins PIO0_0 to PIO0_28

0x1000 - Word pin registers port 0

0x2000 - Direction registers port 0

0x2080 - Mask register port 0

0x2100 - Port pin register port 0

0x2180 - Masked port register port 0

0x2200 - Write: Set register for port 0 Read: output bits for port 0

0x2280 - Clear port 0

0x2300 - Toggle port 0

0x2380 - Set pin direction bits for port 0.

0x2400 - Clear pin direction bits for port 0.

0x2480 - Toggle pin direction bits for port 0.