embassy-stm32

Crates

git

Versions

stm32h725re

Flavors

embassy_stm32::dma

Trait Channel

Source
pub trait Channel:
    SealedChannel
    + Peripheral<P = Self>
    + Into<AnyChannel>
    + 'static {
    // Provided method
    fn degrade(self) -> AnyChannel { ... }
}
Expand description

DMA channel.

Provided Methods§

Source

fn degrade(self) -> AnyChannel

Type-erase (degrade) this pin into an AnyChannel.

This converts DMA channel singletons (DMA1_CH3, DMA2_CH1, …), which are all different types, into the same type. It is useful for creating arrays of channels, or avoiding generics.

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§