Trait lpc55_hal::typestates::pin::PinId [−][src]
pub trait PinId { const PORT: usize; const NUMBER: u8; const MASK: u32; const OFFSET: usize; const TYPE: PinType; }
Implemented by types that identify pins
Associated Constants
const PORT: usize
[src]
This is X
for PIOX_Y
.
const NUMBER: u8
[src]
This is Y
for PIOX_Y
.
const MASK: u32
[src]
This is 0x00000001
for [PIO0_0
], 0x00000002
for [PIO0_1
],
0x00000004
for [PIO0_2
], and so forth.
const OFFSET: usize
[src]
This is 0x00000001
for [PIO0_0
], 0x00000002
for [PIO0_1
],
This is 0x00000041
for [PIO1_0
], 0x00000012
for [PIO1_1
],
etc.