embassy-rp

Crates

git

Versions

rp235xb

Flavors

ChannelInstance

Trait ChannelInstance 

Source
pub trait ChannelInstance:
    PeripheralType
    + SealedChannelInstance
    + Sized
    + 'static {
    type Interrupt: Interrupt;

    // Required method
    fn number() -> u8;

    // Provided method
    fn regs() -> Channel { ... }
}
Expand description

DMA channel instance trait.

Required Associated Types§

Source

type Interrupt: Interrupt

The interrupt type for this DMA channel.

Required Methods§

Source

fn number() -> u8

Channel number.

Provided Methods§

Source

fn regs() -> Channel

Channel registry block.

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§