Struct alt_stm32f30x_hal::gpio::PF1[][src]

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

Pin

Methods

impl<PT: PullType, PM: PinMode> PF1<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

Sets pull type: Floaing, PullUp, PullDown

Sets io_mode to input

Sets io_mode to analog

Set io_mode to output

Set io_mode to altfn and set alternating function

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

Set output type

Set output type to PushPull

Set output type to OpenDrain

Set output speed

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

Set output type

Set output speed

Set altfn

Trait Implementations

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

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

Drives the pin high Read more

Drives the pin low Read more

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

Drives the pin high Read more

Drives the pin low Read more

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

Is the pin in drive high mode? Read more

Is the pin in drive low mode? Read more

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

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

Is the input pin high?

Is the input pin low?

impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF1<PT, PM>, PA10<PT, PM>, PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PA10<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]

Configures the I2c peripheral to work in master mode Consumes I2c peripheral and pair of (SCL, SDA) pins. Returns [I2c]. Read more

impl<PT: PullType, PM: PinMode> I2cExt<I2C2, PF1<PT, PM>, PF0<PT, PM>, PF1<PT, AltFn<AF4, PushPull, HighSpeed>>, PF0<PT, AltFn<AF4, PushPull, HighSpeed>>> for I2C2
[src]

Configures the I2c peripheral to work in master mode Consumes I2c peripheral and pair of (SCL, SDA) pins. Returns [I2c]. Read more

Auto Trait Implementations

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

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