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§
Required Methods§
Sourceunsafe fn split_internal(self, _: Internal) -> (Self::Rx, Self::Tx)
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§
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.