Struct stm32f042_hal::gpio::gpiob::PB6 [] [src]

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

Pin

Methods

impl<MODE> PB6<MODE>
[src]

[src]

Configures the pin to operate in AF0 mode

[src]

Configures the pin to operate in AF1 mode

[src]

Configures the pin to operate in AF2 mode

[src]

Configures the pin to operate in AF3 mode

[src]

Configures the pin to operate in AF4 mode

[src]

Configures the pin to operate in AF5 mode

[src]

Configures the pin to operate in AF6 mode

[src]

Configures the pin to operate in AF7 mode

[src]

Configures the pin to operate as a floating input pin

[src]

Configures the pin to operate as a pulled down input pin

[src]

Configures the pin to operate as a pulled up input pin

[src]

Configures the pin to operate as an open drain output pin

[src]

Configures the pin to operate as an push pull output pin

impl PB6<Output<OpenDrain>>
[src]

[src]

Enables / disables the internal pull up

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

[src]

Enables / disables the internal pull up

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

[src]

Turns pin alternate configuration pin into open drain

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

[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

impl<MODE> PB6<Input<MODE>>
[src]

[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> OutputPin for PB6<Output<MODE>>
[src]

[src]

Is the output pin high?

[src]

Is the output pin low?

[src]

Sets the pin high

[src]

Sets the pin low

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

[src]

Is the input pin high?

[src]

Is the input pin low?

Auto Trait Implementations

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

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