pub trait DmaChannel: Sized {
    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) { ... }
}Expand description
A description of a DMA Channel.
Required Associated Types§
Sourcetype Rx: DmaRxChannel
 
type Rx: DmaRxChannel
A description of the RX half of a DMA Channel.
Sourcetype Tx: DmaTxChannel
 
type Tx: DmaTxChannel
A description of the TX half of a DMA Channel.
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.
Implementors§
Source§impl<'d> DmaChannel for DMA_CH0<'d>
Available on crate feature unstable only. 
impl<'d> DmaChannel for DMA_CH0<'d>
Available on crate feature 
unstable only.type Rx = AnyGdmaRxChannel<'d>
type Tx = AnyGdmaTxChannel<'d>
Source§impl<'d> DmaChannel for DMA_CH1<'d>
Available on crate feature unstable only. 
impl<'d> DmaChannel for DMA_CH1<'d>
Available on crate feature 
unstable only.type Rx = AnyGdmaRxChannel<'d>
type Tx = AnyGdmaTxChannel<'d>
Source§impl<'d> DmaChannel for DMA_CH2<'d>
Available on crate feature unstable only. 
impl<'d> DmaChannel for DMA_CH2<'d>
Available on crate feature 
unstable only.type Rx = AnyGdmaRxChannel<'d>
type Tx = AnyGdmaTxChannel<'d>
Source§impl<'d> DmaChannel for AnyGdmaChannel<'d>
Available on crate feature unstable only. 
impl<'d> DmaChannel for AnyGdmaChannel<'d>
Available on crate feature 
unstable only.