Embassy
embassy-rp

Crates

git

Versions

rp2040

Flavors

Trait embassy_rp::gpio::Pin

source ·
pub trait Pin: Peripheral<P = Self> + Into<AnyPin> + SealedPin + Sized + 'static {
    // Provided methods
    fn degrade(self) -> AnyPin { ... }
    fn pin(&self) -> u8 { ... }
    fn bank(&self) -> Bank { ... }
}
Expand description

Interface for a Pin that can be configured by an Input or Output driver, or converted to an AnyPin.

Provided Methods§

source

fn degrade(self) -> AnyPin

Degrade to a generic pin struct

source

fn pin(&self) -> u8

Returns the pin number within a bank

source

fn bank(&self) -> Bank

Returns the bank of this pin

Object Safety§

This trait is not object safe.

Implementors§