Type Alias atmega_hal::port::Pin

source ·
pub type Pin<MODE, PIN = Dynamic> = Pin<MODE, PIN>;
Expand description

Type-alias for a pin type which can represent any concrete pin.

Sometimes it is easier to handle pins if they are all of the same type. By default, each pin gets its own distinct type in avr-hal, but by downgrading, you can cast them into this “dynamic” type. Do note, however, that using this dynamic type has a runtime cost.

Aliased Type§

struct Pin<MODE, PIN = Dynamic> { /* private fields */ }