Type Alias stm32f4xx_hal::gpio::PD2

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

PD2 pin

Aliased Type§

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

Trait Implementations§

source§

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

§

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,

§

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,

§

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,

§

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.