embassy-rp

Crates

git

Versions

rp2040

Flavors

Trait Channel

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

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

DMA channel interface.

Required Methods§

Source

fn number(&self) -> u8

Channel number.

Provided Methods§

Source

fn regs(&self) -> 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§