embassy-stm32

Crates

git

Versions

stm32h7r7l8

Flavors

๐Ÿ“ฃ We want to hear from you! Fill the Rust Embedded 2024 micro-survey.

Trait embassy_stm32::dma::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.

Object Safetyยง

This trait is not object safe.

Implementorsยง