Struct stm32_hal2::gpio::Pin[][src]

pub struct Pin {
    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. THIS IS EXPERIMENTAL. PLEASE USE GpioAPin etc instead.

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.

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.