Trait PinExt

Source
pub trait PinExt {
    type Mode;

    // Required methods
    fn pin_id(&self) -> u8;
    fn port_id(&self) -> u8;
}
Expand description

Id, port and mode for any pin

Required Associated Types§

Source

type Mode

Current pin mode

Required Methods§

Source

fn pin_id(&self) -> u8

Pin number

Source

fn port_id(&self) -> u8

Port number starting from 0

Implementors§

Source§

impl<MODE> PinExt for ErasedPin<MODE>

Source§

type Mode = MODE

Source§

impl<const P: char, MODE> PinExt for PartiallyErasedPin<P, MODE>

Source§

type Mode = MODE

Source§

impl<const P: char, const N: u8, MODE> PinExt for Pin<P, N, MODE>

Source§

type Mode = MODE