embassy-rp

Crates

git

Versions

rp235xb

Flavors

Skip to main content

Pin

Trait Pin 

Source
pub trait Pin:
    PeripheralType
    + Into<AnyPin>
    + SealedPin
    + Sized
    + 'static {
    // Provided methods
    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 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".

Implementors§