Embassy
embassy-nrf

Crates

git

Versions

nrf52805

Flavors

Trait embassy_nrf::gpio::Pin

source ·
pub trait Pin: Peripheral<P = Self> + Into<AnyPin> + SealedPin + Sized + 'static {
    // Provided methods
    fn pin(&self) -> u8 { ... }
    fn port(&self) -> Port { ... }
    fn psel_bits(&self) -> u32 { ... }
    fn degrade(self) -> AnyPin { ... }
}
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

Number of the pin within the port (0..31)

source

fn port(&self) -> Port

Port of the pin

source

fn psel_bits(&self) -> u32

Peripheral port register value

source

fn degrade(self) -> AnyPin

Convert from concrete pin type PX_XX to type erased AnyPin.

Object Safety§

This trait is not object safe.

Implementors§