Embassy
embassy-nrf

Crates

git

Versions

nrf52805

Flavors

Trait embassy_nrf::gpiote::Channel

source ·
pub trait Channel: SealedChannel + Into<AnyChannel> + Sized + 'static {
    // Required method
    fn number(&self) -> usize;

    // Provided method
    fn degrade(self) -> AnyChannel { ... }
}
Expand description

GPIOTE channel trait.

Implemented by all GPIOTE channels.

Required Methods§

source

fn number(&self) -> usize

Get the channel number.

Provided Methods§

source

fn degrade(self) -> AnyChannel

Convert this channel to a type-erased AnyChannel.

This allows using several channels in situations that might require them to be the same type, like putting them in an array.

Object Safety§

This trait is not object safe.

Implementors§