[][src]Struct alt_stm32f30x_hal::gpio::PC11

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

Pin

Implementations

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

pub fn downgrade(self) -> PCx<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) -> PC11<NPT, PM>[src]

Sets pull type: Floaing, PullUp, PullDown

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

Sets io_mode to input

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

Sets io_mode to analog

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

Set io_mode to output

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

Set io_mode to altfn and set alternating function

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

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

Set output type

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

Set output type to PushPull

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

Set output type to OpenDrain

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

Set output speed

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

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

Set output type

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

Set output speed

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

Set altfn

Trait Implementations

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

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

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

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

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

impl<PT: PullType, PM: PinMode> SerialExt<USART3, PB10<PT, PM>, PC11<PT, PM>, PB10<PT, AltFn<AF7, PushPull, HighSpeed>>, PC11<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3[src]

impl<PT: PullType, PM: PinMode> SerialExt<USART3, PC10<PT, PM>, PC11<PT, PM>, PC10<PT, AltFn<AF7, PushPull, HighSpeed>>, PC11<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3[src]

impl<PT: PullType, PM: PinMode> SerialExt<USART3, PD8<PT, PM>, PC11<PT, PM>, PD8<PT, AltFn<AF7, PushPull, HighSpeed>>, PC11<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART3[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI3, PB3<PT, PM>, PC11<PT, PM>, PB5<PT, PM>, PB3<PT, AltFn<AF6, PushPull, HighSpeed>>, PC11<PT, AltFn<AF6, PushPull, HighSpeed>>, PB5<PT, AltFn<AF6, PushPull, HighSpeed>>> for SPI3[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI3, PB3<PT, PM>, PC11<PT, PM>, PC12<PT, PM>, PB3<PT, AltFn<AF6, PushPull, HighSpeed>>, PC11<PT, AltFn<AF6, PushPull, HighSpeed>>, PC12<PT, AltFn<AF6, PushPull, HighSpeed>>> for SPI3[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI3, PC10<PT, PM>, PC11<PT, PM>, PB5<PT, PM>, PC10<PT, AltFn<AF6, PushPull, HighSpeed>>, PC11<PT, AltFn<AF6, PushPull, HighSpeed>>, PB5<PT, AltFn<AF6, PushPull, HighSpeed>>> for SPI3[src]

impl<PT: PullType, PM: PinMode> SpiExt<SPI3, PC10<PT, PM>, PC11<PT, PM>, PC12<PT, PM>, PC10<PT, AltFn<AF6, PushPull, HighSpeed>>, PC11<PT, AltFn<AF6, PushPull, HighSpeed>>, PC12<PT, AltFn<AF6, PushPull, HighSpeed>>> for SPI3[src]

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

Auto Trait Implementations

impl<PT, PM> Send for PC11<PT, PM> where
    PM: Send,
    PT: Send
[src]

impl<PT, PM> Sync for PC11<PT, PM> where
    PM: Sync,
    PT: Sync
[src]

impl<PT, PM> Unpin for PC11<PT, PM> where
    PM: Unpin,
    PT: Unpin
[src]

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> InputPin for T where
    T: InputPin
[src]

type Error = ()

Error type

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

impl<T> OutputPin for T where
    T: OutputPin
[src]

type Error = ()

Error type

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

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

type Error = <P as OutputPin>::Error

Error type

pub fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>[src]

Toggle pin output

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.