Trait embassy_stm32::gpio::Pin
source · pub trait Pin: Peripheral<P = Self> + Into<AnyPin> + Pin + Sized + 'static {
type ExtiChannel: Channel;
// Provided methods
fn pin(&self) -> u8 { ... }
fn port(&self) -> u8 { ... }
fn degrade(self) -> AnyPin { ... }
}
Expand description
GPIO pin trait.
Required Associated Types§
sourcetype ExtiChannel: Channel
type ExtiChannel: Channel
EXTI channel assigned to this pin.
For example, PC4 uses EXTI4.
Provided Methods§
Object Safety§
This trait is not object safe.