pub trait PinTrait {
const PORT: usize;
const ID: u8;
const MASK: u32;
}
Implemented by types that identify pins
This trait is an internal implementation detail and should neither be
implemented nor used outside of LPC82x HAL. Any changes to this trait won't
be considered breaking changes.
Please refer to Pin
for the public API used to control pins.
const PORT: usize
A number that indentifies the port
This is 0
for PIO0_0
and 1
for PIO1_0
const ID: u8
A number that identifies the pin
This is 0
for PIO0_0
, 1
for PIO0_1
and so forth.
const MASK: u32
The pin's bit mask
This is 0x00000001
for PIO0_0
, 0x00000002
for PIO0_1
,
0x00000004
for PIO0_2
, and so forth.
Loading content...
Loading content...