[][src]Struct alt_stm32f30x_hal::gpio::PA5

pub struct PA5<PT: PullType, PM: PinMode> { /* fields omitted */ }

Pin

Methods

impl<PT: PullType, PM: PinMode> PA5<PT, PM>[src]

pub fn downgrade(self) -> PAx<PT, PM>[src]

Erases the pin number from the type

This is useful when you want to collect the pins into an array where you need all the elements to have the same type

pub fn pull_type<NPT: PullType>(self, pt: NPT) -> PA5<NPT, PM>[src]

Sets pull type: Floaing, PullUp, PullDown

pub fn input(self) -> PA5<PT, Input>[src]

Sets io_mode to input

pub fn analog(self) -> PA5<PT, Analog>[src]

Sets io_mode to analog

pub fn output(self) -> PA5<PT, Output<PushPull, LowSpeed>>[src]

Set io_mode to output

pub fn alternating<AFN: AltFnNum>(
    self,
    af: AFN
) -> PA5<PT, AltFn<AFN, PushPull, LowSpeed>>
[src]

Set io_mode to altfn and set alternating function

impl<PT: PullType, OT: OutputType, OS: OutputSpeed> PA5<PT, Output<OT, OS>>[src]

pub fn output_type<NOT: OutputType>(self, ot: NOT) -> PA5<PT, Output<NOT, OS>>[src]

Set output type

pub fn push_pull(self) -> PA5<PT, Output<PushPull, OS>>[src]

Set output type to PushPull

pub fn open_drain(self) -> PA5<PT, Output<OpenDrain, OS>>[src]

Set output type to OpenDrain

pub fn output_speed<NOS: OutputSpeed>(self, os: NOS) -> PA5<PT, Output<OT, NOS>>[src]

Set output speed

impl<PT: PullType, AFN: AltFnNum, OT: OutputType, OS: OutputSpeed> PA5<PT, AltFn<AFN, OT, OS>>[src]

pub fn output_type<NOT: OutputType>(
    self,
    ot: NOT
) -> PA5<PT, AltFn<AFN, NOT, OS>>
[src]

Set output type

pub fn output_speed<NOS: OutputSpeed>(
    self,
    os: NOS
) -> PA5<PT, AltFn<AFN, OT, NOS>>
[src]

Set output speed

pub fn alt_fn<NAFN: AltFnNum>(self, af: NAFN) -> PA5<PT, AltFn<NAFN, OT, OS>>[src]

Set altfn

Trait Implementations

impl<PT: PullType, PM: PinMode> GPIOPin for PA5<PT, PM>[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI1, PA5<PT, PM>, PA6<PT, PM>, PA7<PT, PM>, PA5<PT, AltFn<AF5, PushPull, HighSpeed>>, PA6<PT, AltFn<AF5, PushPull, HighSpeed>>, PA7<PT, AltFn<AF5, PushPull, HighSpeed>>> for SPI1[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI1, PA5<PT, PM>, PA6<PT, PM>, PB5<PT, PM>, PA5<PT, AltFn<AF5, PushPull, HighSpeed>>, PA6<PT, AltFn<AF5, PushPull, HighSpeed>>, PB5<PT, AltFn<AF5, PushPull, HighSpeed>>> for SPI1[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI1, PA5<PT, PM>, PB4<PT, PM>, PA7<PT, PM>, PA5<PT, AltFn<AF5, PushPull, HighSpeed>>, PB4<PT, AltFn<AF5, PushPull, HighSpeed>>, PA7<PT, AltFn<AF5, PushPull, HighSpeed>>> for SPI1[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI1, PA5<PT, PM>, PB4<PT, PM>, PB5<PT, PM>, PA5<PT, AltFn<AF5, PushPull, HighSpeed>>, PB4<PT, AltFn<AF5, PushPull, HighSpeed>>, PB5<PT, AltFn<AF5, PushPull, HighSpeed>>> for SPI1[src]

impl<PT: PullType, OT: OutputType, OS: OutputSpeed> OutputPin for PA5<PT, Output<OT, OS>>[src]

impl<PT: PullType, AN: AltFnNum, OT: OutputType, OS: OutputSpeed> OutputPin for PA5<PT, AltFn<AN, OT, OS>>[src]

impl<PT: PullType, OT: OutputType, OS: OutputSpeed> StatefulOutputPin for PA5<PT, Output<OT, OS>>[src]

impl<PT: PullType, OT: OutputType, OS: OutputSpeed> Default for PA5<PT, Output<OT, OS>>[src]

impl<PT: PullType> InputPin for PA5<PT, Input>[src]

Auto Trait Implementations

impl<PT, PM> Send for PA5<PT, PM> where
    PM: Send,
    PT: Send

impl<PT, PM> Sync for PA5<PT, PM> where
    PM: Sync,
    PT: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

impl<P> ToggleableOutputPin for P where
    P: Default
[src]

fn toggle(&mut self)[src]

Toggle pin output