Type Alias stm32f4xx_hal::gpio::gpioc::PC2

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

PC2 pin

Aliased Type§

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

Trait Implementations§

source§

impl Channel<ADC1> for PC2<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
source§

impl Channel<ADC2> for PC2<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
source§

impl Channel<ADC3> for PC2<Analog>

§

type ID = u8

Channel ID type Read more
source§

fn channel() -> u8

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8.
source§

impl<MODE> TryFrom<ExtSd> for PC2<MODE>
where MODE: PinMode, Alternate<6, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE> TryFrom<Miso> for PC2<MODE>
where MODE: PinMode, Alternate<5, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE> TryFrom<Sdne0> for PC2<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: Sdne0) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<MODE> TryFrom<Txd2> for PC2<MODE>
where MODE: PinMode, Alternate<11, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.
source§

impl<MODE> TryFrom<UlpiDir> for PC2<MODE>
where MODE: PinMode, Alternate<10, PushPull>: PinMode,

§

type Error = ()

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

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

Performs the conversion.