Trait stm32f4xx_hal::dma::traits::PeriAddress[][src]

pub unsafe trait PeriAddress {
    type MemSize;
    fn address(&self) -> u32;
}
Expand description

Get an address and memory size the DMA can use.

Safety

Both the memory size and the address must be correct for the specific peripheral and for the DMA.

Associated Types

Memory size of the peripheral.

Required methods

Returns the address to be used by the DMA stream.

Implementations on Foreign Types

I2S DMA reads from and writes to the data register

SPI_DR is only 16 bits. Multiple transfers are needed for a 24-bit or 32-bit sample, as explained in the reference manual.

Implementors