DmaWrite

Trait DmaWrite 

Source
pub trait DmaWrite {
    // Required method
    fn dma_write<S, T, SPI, STREAM, CHANNEL, X>(
        &mut self,
        dma: STREAM,
        data: S,
    ) -> X
       where S: AsRef<[T]>,
             STREAM: DmaStreamTransfer<S, T, X> + SpiDmaStream<SPI, CHANNEL, DmaTx>,
             CHANNEL: DmaChannel,
             X: Transfer<STREAM>;
}
Expand description

Allows to write with DMA

Required Methods§

Source

fn dma_write<S, T, SPI, STREAM, CHANNEL, X>( &mut self, dma: STREAM, data: S, ) -> X
where S: AsRef<[T]>, STREAM: DmaStreamTransfer<S, T, X> + SpiDmaStream<SPI, CHANNEL, DmaTx>, CHANNEL: DmaChannel, X: Transfer<STREAM>,

Start writing DMA transfer

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<SCK, MISO, MOSI> DmaWrite for Spi<SPI1, (SCK, MISO, MOSI)>

Source§

impl<SCK, MISO, MOSI> DmaWrite for Spi<SPI2, (SCK, MISO, MOSI)>

Source§

impl<SCK, MISO, MOSI> DmaWrite for Spi<SPI3, (SCK, MISO, MOSI)>