embassy-nrf

Crates

git

Versions

nrf54lm20-app-s

Flavors

Skip to main content

Channel

Trait Channel 

Source
pub trait Channel:
    PeripheralType
    + SealedChannel
    + Sized
    + 'static {
    type Instance: GpioteInstance;
    type Interrupt: Interrupt;

    // Provided method
    fn number(&self) -> usize { ... }
}
Expand description

GPIOTE channel trait.

Implemented by all GPIOTE channels.

Required Associated Types§

Source

type Instance: GpioteInstance

GPIOTE instance this channel belongs to.

Source

type Interrupt: Interrupt

Interrupt of the GPIOTE instance this channel belongs to.

Provided Methods§

Source

fn number(&self) -> usize

Get the channel number.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Channel for GPIOTE20_CH0

Source§

impl Channel for GPIOTE20_CH1

Source§

impl Channel for GPIOTE20_CH2

Source§

impl Channel for GPIOTE20_CH3

Source§

impl Channel for GPIOTE20_CH4

Source§

impl Channel for GPIOTE20_CH5

Source§

impl Channel for GPIOTE20_CH6

Source§

impl Channel for GPIOTE20_CH7

Source§

impl Channel for GPIOTE30_CH0

Source§

impl Channel for GPIOTE30_CH1

Source§

impl Channel for GPIOTE30_CH2

Source§

impl Channel for GPIOTE30_CH3