[][src]Struct stm32l0x1_hal::gpio::PC15

pub struct PC15<MODE>(_);

Specific GPIO pin

Implementations

impl<MODE> PC15<MODE>[src]

pub fn into_analog(self) -> PC15<Analog>[src]

Configures the PIN to operate as a high-impedance analog input

pub fn into_input<Mode: PullMode>(self) -> PC15<Input<Mode>>[src]

Configures the PIN to operate as Input Pin according to Mode.

pub fn set_pin_speed(&self, spd: PinSpeed)[src]

Set pin drive strength of the pin

pub fn into_output<OMode: OutputMode, PUMode: PullMode>(
    self
) -> PC15<Output<OMode, PUMode>>
[src]

Configures the PIN to operate as Output Pin according to OMode and PUMode

pub fn into_alt_fun<AF: AltFun>(self) -> PC15<AF>[src]

Configures the PIN to operate as Alternate Function.

Trait Implementations

impl<PUMODE> InputPin for PC15<Input<PUMODE>>[src]

type Error = Infallible

Error type

impl<OMODE, PUMODE> OutputPin for PC15<Output<OMODE, PUMODE>>[src]

type Error = Infallible

Error type

impl<OMODE, PUMODE> StatefulOutputPin for PC15<Output<OMODE, PUMODE>>[src]

fn try_is_set_high(&self) -> Result<bool, Self::Error>[src]

Returns whether high bit is set.

fn try_is_set_low(&self) -> Result<bool, Self::Error>[src]

Returns whether low bit is set.

Auto Trait Implementations

impl<MODE> Send for PC15<MODE> where
    MODE: Send

impl<MODE> Sync for PC15<MODE> where
    MODE: Sync

impl<MODE> Unpin for PC15<MODE> where
    MODE: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.