[][src]Struct stm32f4xx_hal::gpio::gpioc::PC11

pub struct PC11<MODE> { /* fields omitted */ }

Pin

Methods

impl<MODE> PC11<MODE>[src]

pub fn into_alternate_af0(self) -> PC11<Alternate<AF0>>[src]

Configures the pin to operate in AF0 mode

pub fn into_alternate_af1(self) -> PC11<Alternate<AF1>>[src]

Configures the pin to operate in AF1 mode

pub fn into_alternate_af2(self) -> PC11<Alternate<AF2>>[src]

Configures the pin to operate in AF2 mode

pub fn into_alternate_af3(self) -> PC11<Alternate<AF3>>[src]

Configures the pin to operate in AF3 mode

pub fn into_alternate_af4(self) -> PC11<Alternate<AF4>>[src]

Configures the pin to operate in AF4 mode

pub fn into_alternate_af5(self) -> PC11<Alternate<AF5>>[src]

Configures the pin to operate in AF5 mode

pub fn into_alternate_af6(self) -> PC11<Alternate<AF6>>[src]

Configures the pin to operate in AF6 mode

pub fn into_alternate_af7(self) -> PC11<Alternate<AF7>>[src]

Configures the pin to operate in AF7 mode

pub fn into_alternate_af8(self) -> PC11<Alternate<AF8>>[src]

Configures the pin to operate in AF8 mode

pub fn into_alternate_af9(self) -> PC11<Alternate<AF9>>[src]

Configures the pin to operate in AF9 mode

pub fn into_alternate_af10(self) -> PC11<Alternate<AF10>>[src]

Configures the pin to operate in AF10 mode

pub fn into_alternate_af11(self) -> PC11<Alternate<AF11>>[src]

Configures the pin to operate in AF11 mode

pub fn into_alternate_af12(self) -> PC11<Alternate<AF12>>[src]

Configures the pin to operate in AF12 mode

pub fn into_alternate_af13(self) -> PC11<Alternate<AF13>>[src]

Configures the pin to operate in AF13 mode

pub fn into_alternate_af14(self) -> PC11<Alternate<AF14>>[src]

Configures the pin to operate in AF14 mode

pub fn into_alternate_af15(self) -> PC11<Alternate<AF15>>[src]

Configures the pin to operate in AF15 mode

pub fn into_floating_input(self) -> PC11<Input<Floating>>[src]

Configures the pin to operate as a floating input pin

pub fn into_pull_down_input(self) -> PC11<Input<PullDown>>[src]

Configures the pin to operate as a pulled down input pin

pub fn into_pull_up_input(self) -> PC11<Input<PullUp>>[src]

Configures the pin to operate as a pulled up input pin

pub fn into_open_drain_output(self) -> PC11<Output<OpenDrain>>[src]

Configures the pin to operate as an open drain output pin

pub fn into_push_pull_output(self) -> PC11<Output<PushPull>>[src]

Configures the pin to operate as an push pull output pin

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

Configures the pin to operate as an analog input pin

impl<MODE> PC11<Output<MODE>>[src]

pub fn set_speed(self, speed: Speed) -> Self[src]

Set pin speed

impl PC11<Output<OpenDrain>>[src]

pub fn internal_pull_up(&mut self, on: bool)[src]

Enables / disables the internal pull up

impl<MODE> PC11<Alternate<MODE>>[src]

pub fn set_speed(self, speed: Speed) -> Self[src]

Set pin speed

pub fn internal_pull_up(self, on: bool) -> Self[src]

Enables / disables the internal pull up

impl<MODE> PC11<Alternate<MODE>>[src]

pub fn set_open_drain(self) -> Self[src]

Turns pin alternate configuration pin into open drain

impl<MODE> PC11<MODE>[src]

pub fn downgrade(self) -> PC<MODE>[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

Trait Implementations

impl<MODE> ExtiPin for PC11<Input<MODE>>[src]

fn make_interrupt_source(&mut self, syscfg: &mut SYSCFG)[src]

Configure EXTI Line $i to trigger from this pin.

fn trigger_on_edge(&mut self, exti: &mut EXTI, edge: Edge)[src]

Generate interrupt on rising edge, falling edge or both

fn enable_interrupt(&mut self, exti: &mut EXTI)[src]

Enable external interrupts from this pin.

fn disable_interrupt(&mut self, exti: &mut EXTI)[src]

Disable external interrupts from this pin

fn clear_interrupt_pending_bit(&mut self, exti: &mut EXTI)[src]

Clear the interrupt pending bit for this pin

impl PinRx<USART3> for PC11<Alternate<AF7>>[src]

impl PinRx<UART4> for PC11<Alternate<AF8>>[src]

impl PinMiso<SPI3> for PC11<Alternate<AF6>>[src]

impl<MODE> OutputPin for PC11<Output<MODE>>[src]

impl<MODE> StatefulOutputPin for PC11<Output<MODE>>[src]

impl<MODE> Default for PC11<Output<MODE>>[src]

impl<MODE> InputPin for PC11<Output<MODE>>[src]

impl<MODE> InputPin for PC11<Input<MODE>>[src]

Auto Trait Implementations

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

impl<MODE> Sync for PC11<MODE> where
    MODE: 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