embassy-rp

Crates

git

Versions

rp235xb

Flavors

embassy_rp::gpio

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§