Struct alt_stm32f30x_hal::gpio::PB4[][src]

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

Pin

Methods

impl<PT: PullType, PM: PinMode> PB4<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> PB4<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> PB4<PT, AltFn<AFN, OT, OS>>
[src]

Set output type

Set output speed

Set altfn

Trait Implementations

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

impl<PT: PullType, OT: OutputType, OS: OutputSpeed> OutputPin for PB4<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 PB4<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 PB4<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 PB4<PT, Output<OT, OS>>
[src]

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

Is the input pin high?

Is the input pin low?

impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA2<PT, PM>, PB4<PT, PM>, PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]

Configures USART and consumes pair of (tx, rx) pins to act as serial port. Configures pins accordingly. Returns [Serial]. Read more

impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA14<PT, PM>, PB4<PT, PM>, PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]

Configures USART and consumes pair of (tx, rx) pins to act as serial port. Configures pins accordingly. Returns [Serial]. Read more

impl<PT: PullType, PM: PinMode> SerialExt<USART2, PB3<PT, PM>, PB4<PT, PM>, PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]

Configures USART and consumes pair of (tx, rx) pins to act as serial port. Configures pins accordingly. Returns [Serial]. Read more

impl<PT: PullType, PM: PinMode> SerialExt<USART2, PD5<PT, PM>, PB4<PT, PM>, PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]

Configures USART and consumes pair of (tx, rx) pins to act as serial port. Configures pins accordingly. Returns [Serial]. Read more

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]

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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]

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

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

Configures the SPI peripheral to operate in full duplex master mode. Consumes SPI peripheral and triple of (SCK, MISO, MOSI) pins. Returns [Spi]. Read more

Auto Trait Implementations

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

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