#[repr(C)]
pub struct RegisterBlock { pub out: OUT, pub omr: OMR, pub iocr0: IOCR0, pub iocr4: IOCR4, pub iocr8: IOCR8, pub iocr12: IOCR12, pub in_: IN, pub pdr0: PDR0, pub pdr1: PDR1, pub pdisc: PDISC, pub pps: PPS, pub hwsel: HWSEL, /* private fields */ }
Expand description

Register block

Fields

out: OUT

0x00 - Port 2 Output Register

omr: OMR

0x04 - Port 2 Output Modification Register

iocr0: IOCR0

0x10 - Port 2 Input/Output Control Register 0

iocr4: IOCR4

0x14 - Port 2 Input/Output Control Register 4

iocr8: IOCR8

0x18 - Port 2 Input/Output Control Register 8

iocr12: IOCR12

0x1c - Port 2 Input/Output Control Register 12

in_: IN

0x24 - Port 2 Input Register

pdr0: PDR0

0x40 - Port 2 Pad Driver Mode 0 Register

pdr1: PDR1

0x44 - Port 2 Pad Driver Mode 1 Register

pdisc: PDISC

0x60 - Port 2 Pin Function Decision Control Register

pps: PPS

0x70 - Port 2 Pin Power Save Register

hwsel: HWSEL

0x74 - Port 2 Pin Hardware Select Register

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.

Should always be Self
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.