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: PortLetter
pin: u8
Implementations
Set output type.
Set output speed.
Set internal pull resistor: Pull up, pull down, or floating.
Set the output_data register.