embassy-stm32

Crates

git

Versions

stm32c5a3mg

Flavors

Skip to main content

Dma

Trait Dma 

Source
pub trait Dma<T: GeneralInstance4Channel, M: TimerChannel>: ChannelInstance {
    // Required methods
    fn request(&self) -> Request;
    fn remap(&self);
}
Expand description

Dma DMA request trait

Required Methods§

Source

fn request(&self) -> Request

Get the DMA request number needed to use this channel as Dma. Note: in some chips, ST calls this the “channel”, and calls channels “streams”. embassy-stm32 always uses the “channel” and “request number” names.

Source

fn remap(&self)

Remap the DMA channel

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§