Skip to main content

DmaChannel

Trait DmaChannel 

Source
pub trait DmaChannel: Sized + Sealed {
    type Rx: DmaRxChannel + From<Self>;
    type Tx: DmaTxChannel + From<Self>;

    // Required method
    unsafe fn split_internal(self, _: Internal) -> (Self::Rx, Self::Tx);

    // Provided method
    fn split(self) -> (Self::Rx, Self::Tx) { ... }
}
Available on crate feature unstable only.
Expand description

A description of a DMA Channel.

Required Associated Types§

Source

type Rx: DmaRxChannel + From<Self>

A description of the RX half of a DMA Channel.

Source

type Tx: DmaTxChannel + From<Self>

A description of the TX half of a DMA Channel.

Required Methods§

Source

unsafe fn split_internal(self, _: Internal) -> (Self::Rx, Self::Tx)

Splits the DMA channel into its RX and TX halves.

§Safety

Must only be used if the separate halves are used by the same peripheral.

Provided Methods§

Source

fn split(self) -> (Self::Rx, Self::Tx)

Splits the DMA channel into its RX and TX halves.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§