Trait DmaChannel

Source
pub trait DmaChannel: Peripheral<P = Self> {
    type Rx: DmaRxChannel;
    type Tx: DmaTxChannel;

    // 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

A description of the RX half of a DMA Channel.

Source

type Tx: DmaTxChannel

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

This function 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", so this trait is not object safe.

Implementors§