#[repr(C)]
pub struct RegisterBlock {
Show 18 fields pub p1in: P1IN, pub p1out: P1OUT, pub p1dir: P1DIR, pub p1ifg: P1IFG, pub p1ies: P1IES, pub p1ie: P1IE, pub p1sel: P1SEL, pub p1ren: P1REN, pub p2in: P2IN, pub p2out: P2OUT, pub p2dir: P2DIR, pub p2ifg: P2IFG, pub p2ies: P2IES, pub p2ie: P2IE, pub p2sel: P2SEL, pub p2ren: P2REN, pub p1sel2: P1SEL2, pub p2sel2: P2SEL2, /* private fields */
}
Expand description

Register block

Fields

p1in: P1IN

0x00 - Port 1 Input

p1out: P1OUT

0x01 - Port 1 Output

p1dir: P1DIR

0x02 - Port 1 Direction

p1ifg: P1IFG

0x03 - Port 1 Interrupt Flag

p1ies: P1IES

0x04 - Port 1 Interrupt Edge Select

p1ie: P1IE

0x05 - Port 1 Interrupt Enable

p1sel: P1SEL

0x06 - Port 1 Selection

p1ren: P1REN

0x07 - Port 1 Resistor Enable

p2in: P2IN

0x08 - Port 2 Input

p2out: P2OUT

0x09 - Port 2 Output

p2dir: P2DIR

0x0a - Port 2 Direction

p2ifg: P2IFG

0x0b - Port 2 Interrupt Flag

p2ies: P2IES

0x0c - Port 2 Interrupt Edge Select

p2ie: P2IE

0x0d - Port 2 Interrupt Enable

p2sel: P2SEL

0x0e - Port 2 Selection

p2ren: P2REN

0x0f - Port 2 Resistor Enable

p1sel2: P1SEL2

0x21 - Port 1 Selection 2

p2sel2: P2SEL2

0x22 - Port 2 Selection 2

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.