Type Alias PD2

Source
pub type PD2<MODE = DefaultMode> = Pin<'D', 2, MODE>;
Expand description

PD2 pin

Aliased Type§

pub struct PD2<MODE = DefaultMode> { /* private fields */ }

Trait Implementations§

Source§

impl<MODE> TryFrom<Cmd> for PD2<MODE>
where MODE: PinMode, Alternate<12, PushPull>: PinMode,

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(a: Cmd) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<MODE> TryFrom<D11> for PD2<MODE>
where MODE: PinMode, Alternate<13, PushPull>: PinMode,

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(a: D11) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<MODE> TryFrom<Etr> for PD2<MODE>
where MODE: PinMode, Alternate<2, PushPull>: PinMode,

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(a: Etr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<MODE, Otype> TryFrom<Rx<Otype>> for PD2<MODE>
where MODE: PinMode, Alternate<8, Otype>: PinMode,

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(a: Rx<Otype>) -> Result<Self, Self::Error>

Performs the conversion.