Struct stm32_hal2::gpio::GpioBPin[][src]

pub struct GpioBPin {
    pub port: PortLetter,
    pub pin: u8,
}
Expand description

Represents a single GPIO pin. Provides methods that, when passed a mutable reference to its port’s register block, can change and read various properties of the pin.

Fields

port: PortLetterpin: u8

Implementations

Set pin mode.

Set output type.

Set output speed.

Set internal pull resistor: Pull up, pull down, or floating.

Set the output_data register.

Lock or unlock a port configuration.

Read the input data register.

Set a pin state (ie set high or low output voltage level).

Configure this pin as an interrupt source.

Check if the pin’s input voltage is high (VCC).

Check if the pin’s input voltage is low (ground).

Set the pin’s output voltage to high (VCC).

Set the pin’s output voltage to ground (low).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.