embassy-rp

Crates

git

Versions

rp235xa

Flavors

embassy_rp::dma

Trait Channel

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

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

DMA channel interface.

Required Methods§

Source

fn number(&self) -> u8

Channel number.

Provided Methods§

Source

fn regs(&self) -> Channel

Channel registry block.

Source

fn degrade(self) -> AnyChannel

Convert into type-erased AnyChannel.

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§