#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub p1in: Reg<P1IN_SPEC>, pub p2in: Reg<P2IN_SPEC>, pub p1out: Reg<P1OUT_SPEC>, pub p2out: Reg<P2OUT_SPEC>, pub p1dir: Reg<P1DIR_SPEC>, pub p2dir: Reg<P2DIR_SPEC>, pub p1ren: Reg<P1REN_SPEC>, pub p2ren: Reg<P2REN_SPEC>, pub p1ds: Reg<P1DS_SPEC>, pub p2ds: Reg<P2DS_SPEC>, pub p1sel: Reg<P1SEL_SPEC>, pub p2sel: Reg<P2SEL_SPEC>, pub p1iv: Reg<P1IV_SPEC>, pub p1ies: Reg<P1IES_SPEC>, pub p2ies: Reg<P2IES_SPEC>, pub p1ie: Reg<P1IE_SPEC>, pub p2ie: Reg<P2IE_SPEC>, pub p1ifg: Reg<P1IFG_SPEC>, pub p2ifg: Reg<P2IFG_SPEC>, pub p2iv: Reg<P2IV_SPEC>, /* private fields */
}
Expand description

Register block

Fields

p1in: Reg<P1IN_SPEC>

0x00 - Port 1 Input

p2in: Reg<P2IN_SPEC>

0x01 - Port 2 Input

p1out: Reg<P1OUT_SPEC>

0x02 - Port 1 Output

p2out: Reg<P2OUT_SPEC>

0x03 - Port 2 Output

p1dir: Reg<P1DIR_SPEC>

0x04 - Port 1 Direction

p2dir: Reg<P2DIR_SPEC>

0x05 - Port 2 Direction

p1ren: Reg<P1REN_SPEC>

0x06 - Port 1 Resistor Enable

p2ren: Reg<P2REN_SPEC>

0x07 - Port 2 Resistor Enable

p1ds: Reg<P1DS_SPEC>

0x08 - Port 1 Drive Strenght

p2ds: Reg<P2DS_SPEC>

0x09 - Port 2 Drive Strenght

p1sel: Reg<P1SEL_SPEC>

0x0a - Port 1 Selection

p2sel: Reg<P2SEL_SPEC>

0x0b - Port 2 Selection

p1iv: Reg<P1IV_SPEC>

0x0e - Port 1 Interrupt Vector Word

p1ies: Reg<P1IES_SPEC>

0x18 - Port 1 Interrupt Edge Select

p2ies: Reg<P2IES_SPEC>

0x19 - Port 2 Interrupt Edge Select

p1ie: Reg<P1IE_SPEC>

0x1a - Port 1 Interrupt Enable

p2ie: Reg<P2IE_SPEC>

0x1b - Port 2 Interrupt Enable

p1ifg: Reg<P1IFG_SPEC>

0x1c - Port 1 Interrupt Flag

p2ifg: Reg<P2IFG_SPEC>

0x1d - Port 2 Interrupt Flag

p2iv: Reg<P2IV_SPEC>

0x1e - Port 2 Interrupt Vector Word

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.