Struct stm32f407g_disc::gpio::gpioi::PI7[][src]

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

Pin

Implementations

impl<MODE> PI7<MODE>[src]

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

Configures the pin to operate in AF0 mode

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

Configures the pin to operate in AF1 mode

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

Configures the pin to operate in AF2 mode

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

Configures the pin to operate in AF3 mode

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

Configures the pin to operate in AF4 mode

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

Configures the pin to operate in AF5 mode

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

Configures the pin to operate in AF6 mode

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

Configures the pin to operate in AF7 mode

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

Configures the pin to operate in AF8 mode

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

Configures the pin to operate in AF9 mode

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

Configures the pin to operate in AF10 mode

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

Configures the pin to operate in AF11 mode

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

Configures the pin to operate in AF12 mode

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

Configures the pin to operate in AF13 mode

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

Configures the pin to operate in AF14 mode

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

Configures the pin to operate in AF15 mode

pub fn into_alternate_af0_open_drain(self) -> PI7<AlternateOD<AF0>>[src]

Configures the pin to operate in AF0 open drain mode

pub fn into_alternate_af1_open_drain(self) -> PI7<AlternateOD<AF1>>[src]

Configures the pin to operate in AF1 open drain mode

pub fn into_alternate_af2_open_drain(self) -> PI7<AlternateOD<AF2>>[src]

Configures the pin to operate in AF2 open drain mode

pub fn into_alternate_af3_open_drain(self) -> PI7<AlternateOD<AF3>>[src]

Configures the pin to operate in AF3 open drain mode

pub fn into_alternate_af4_open_drain(self) -> PI7<AlternateOD<AF4>>[src]

Configures the pin to operate in AF4 open drain mode

pub fn into_alternate_af5_open_drain(self) -> PI7<AlternateOD<AF5>>[src]

Configures the pin to operate in AF5 open drain mode

pub fn into_alternate_af6_open_drain(self) -> PI7<AlternateOD<AF6>>[src]

Configures the pin to operate in AF6 open drain mode

pub fn into_alternate_af7_open_drain(self) -> PI7<AlternateOD<AF7>>[src]

Configures the pin to operate in AF7 open drain mode

pub fn into_alternate_af8_open_drain(self) -> PI7<AlternateOD<AF8>>[src]

Configures the pin to operate in AF8 open drain mode

pub fn into_alternate_af9_open_drain(self) -> PI7<AlternateOD<AF9>>[src]

Configures the pin to operate in AF9 open drain mode

pub fn into_alternate_af10_open_drain(self) -> PI7<AlternateOD<AF10>>[src]

Configures the pin to operate in AF10 open drain mode

pub fn into_alternate_af11_open_drain(self) -> PI7<AlternateOD<AF11>>[src]

Configures the pin to operate in AF11 open drain mode

pub fn into_alternate_af12_open_drain(self) -> PI7<AlternateOD<AF12>>[src]

Configures the pin to operate in AF12 open drain mode

pub fn into_alternate_af13_open_drain(self) -> PI7<AlternateOD<AF13>>[src]

Configures the pin to operate in AF13 open drain mode

pub fn into_alternate_af14_open_drain(self) -> PI7<AlternateOD<AF14>>[src]

Configures the pin to operate in AF14 open drain mode

pub fn into_alternate_af15_open_drain(self) -> PI7<AlternateOD<AF15>>[src]

Configures the pin to operate in AF15 open drain mode

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

Configures the pin to operate as a floating input pin

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

Configures the pin to operate as a pulled down input pin

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

Configures the pin to operate as a pulled up input pin

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

Configures the pin to operate as an open drain output pin

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

Configures the pin to operate as an push pull output pin

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

Configures the pin to operate as an analog input pin

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

pub fn set_speed(self, speed: Speed) -> PI7<Output<MODE>>[src]

Set pin speed

impl PI7<Output<OpenDrain>>[src]

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

Enables / disables the internal pull up

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

pub fn set_speed(self, speed: Speed) -> PI7<Alternate<MODE>>[src]

Set pin speed

pub fn internal_pull_up(self, on: bool) -> PI7<Alternate<MODE>>[src]

Enables / disables the internal pull up

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

pub fn set_open_drain(self) -> PI7<AlternateOD<MODE>>[src]

Turns pin alternate configuration pin into open drain

impl<MODE> PI7<MODE>[src]

pub fn downgrade(self) -> PI<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> Default for PI7<Output<MODE>>[src]

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

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

Configure EXTI Line $i to trigger from this pin.

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

Generate interrupt on rising edge, falling edge or both

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

Enable external interrupts from this pin.

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

Disable external interrupts from this pin

pub fn clear_interrupt_pending_bit(&mut self)[src]

Clear the interrupt pending bit for this pin

pub fn check_interrupt(&self) -> bool[src]

Reads the interrupt pending bit for this pin

impl<MODE> ExtiPin for PI7<Output<MODE>>[src]

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

Configure EXTI Line $i to trigger from this pin.

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

Generate interrupt on rising edge, falling edge or both

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

Enable external interrupts from this pin.

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

Disable external interrupts from this pin

pub fn clear_interrupt_pending_bit(&mut self)[src]

Clear the interrupt pending bit for this pin

pub fn check_interrupt(&self) -> bool[src]

Reads the interrupt pending bit for this pin

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

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

type Error = Infallible

Error type

impl PinC3<TIM8> for PI7<Alternate<AF3>>[src]

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

Auto Trait Implementations

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

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

impl<MODE> Unpin for PI7<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<TIM, P3> Pins<TIM, C3> for P3 where
    P3: PinC3<TIM>, 
[src]

type Channels = PwmChannels<TIM, C3>

impl<T> Same<T> for T

type Output = T

Should always be Self

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.