pub unsafe trait DmaTxBuffer {
    type View;
    type Final;
    // Required methods
    fn prepare(&mut self) -> Preparation;
    fn into_view(self) -> Self::View;
    fn from_view(view: Self::View) -> Self::Final;
}Expand description
DmaTxBuffer is a DMA descriptor + memory combo that can be used for transmitting data from a DMA channel to a peripheral’s FIFO.
§Safety
The implementing type must keep all its descriptors and the buffers they point to valid while the buffer is being transferred.
Required Associated Types§
Required Methods§
Sourcefn prepare(&mut self) -> Preparation
 
fn prepare(&mut self) -> Preparation
Prepares the buffer for an imminent transfer and returns information required to use this buffer.
Note: This operation is idempotent.
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 DmaTxBuffer for DmaLoopBuf
Available on crate feature unstable only. 
impl DmaTxBuffer for DmaLoopBuf
Available on crate feature 
unstable only.type View = DmaLoopBuf
type Final = DmaLoopBuf
Source§impl DmaTxBuffer for DmaRxTxBuf
Available on crate feature unstable only. 
impl DmaTxBuffer for DmaRxTxBuf
Available on crate feature 
unstable only.type View = BufView<DmaRxTxBuf>
type Final = DmaRxTxBuf
Source§impl DmaTxBuffer for DmaTxBuf
Available on crate feature unstable only. 
impl DmaTxBuffer for DmaTxBuf
Available on crate feature 
unstable only.