Trait TxChannelFor

Source
pub trait TxChannelFor<PER: DmaEligible>: DmaChannelConvert<PeripheralTxChannel<PER>> { }
Available on crate feature unstable only.
Expand description

Trait implemented for the TX half of split DMA channels that are compatible with a particular peripheral. Accepts complete DMA channels or split halves.

This trait is similar in use to DmaChannelFor.

You can use this in places where a peripheral driver would expect a DmaTxChannel implementation.

Implementors§

Source§

impl<P, TX> TxChannelFor<P> for TX
where P: DmaEligible, TX: DmaChannelConvert<PeripheralTxChannel<P>>,