Struct esp32c2_hal::spi::dma::SpiDma

source ·
pub struct SpiDma<T, TX, RX, P>where
    TX: Tx,
    RX: Rx,
    P: SpiPeripheral,
{ /* private fields */ }
Expand description

A DMA capable SPI instance.

Implementations

Return the raw interface to the underlying peripheral instance

Perform a DMA write.

This will return a SpiDmaTransfer owning the buffer(s) and the SPI instance. The maximum amount of data to be sent is 32736 bytes.

Perform a DMA read.

This will return a SpiDmaTransfer owning the buffer(s) and the SPI instance. The maximum amount of data to be received is 32736 bytes.

Perform a DMA transfer.

This will return a SpiDmaTransfer owning the buffer(s) and the SPI instance. The maximum amount of data to be sent/received is 32736 bytes.

Trait Implementations

Wait for the DMA transfer to complete and return the buffers and the SPI instance.

Wait for the DMA transfer to complete and return the buffers and the SPI instance.

Error type
Sends words to the slave. Returns the words received from the slave
Error type
Sends words to the slave, ignoring all the incoming words

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.