PeriAddress

Trait PeriAddress 

Source
pub unsafe trait PeriAddress {
    type MemSize;

    // Required method
    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.

Required Associated Types§

Source

type MemSize

Memory size of the peripheral.

Required Methods§

Source

fn address(&self) -> u32

Returns the address to be used by the DMA stream.

Implementations on Foreign Types§

Source§

impl<SPI, MS, TR, STD> PeriAddress for I2sDriver<I2s<SPI>, MS, TR, STD>
where I2s<SPI>: I2sPeripheral, SPI: Deref<Target = RegisterBlock> + Instance,

I2S DMA reads from and writes to the data register

Source§

type MemSize = u16

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

Source§

fn address(&self) -> u32

Implementors§

Source§

impl PeriAddress for DMAR<TIM1>

Source§

impl PeriAddress for DMAR<TIM2>

Source§

impl PeriAddress for DMAR<TIM3>

Source§

impl PeriAddress for DMAR<TIM4>

Source§

impl PeriAddress for DMAR<TIM5>

Source§

impl PeriAddress for DMAR<TIM8>

Source§

impl PeriAddress for MemoryToMemory<u8>

Source§

impl PeriAddress for MemoryToMemory<u16>

Source§

impl PeriAddress for MemoryToMemory<u32>

Source§

impl PeriAddress for ADC1

Source§

impl PeriAddress for ADC2

Source§

impl PeriAddress for ADC3

Source§

impl PeriAddress for CRYP

Source§

impl PeriAddress for DCMI

Source§

impl PeriAddress for HASH

Source§

impl PeriAddress for I2C1

Source§

impl PeriAddress for I2C2

Source§

impl PeriAddress for I2C3

Source§

impl PeriAddress for SDIO

Source§

impl PeriAddress for SPI1

Source§

impl PeriAddress for SPI2

Source§

impl PeriAddress for SPI3

Source§

impl PeriAddress for SPI4

Source§

impl PeriAddress for SPI5

Source§

impl PeriAddress for SPI6

Source§

impl PeriAddress for UART4

Source§

impl PeriAddress for UART5

Source§

impl PeriAddress for UART7

Source§

impl PeriAddress for UART8

Source§

impl PeriAddress for USART1

Source§

impl PeriAddress for USART2

Source§

impl PeriAddress for USART3

Source§

impl PeriAddress for USART6

Source§

impl<ADC: Instance> PeriAddress for Adc<ADC>

Source§

impl<I2C: Instance> PeriAddress for stm32f4xx_hal::i2c::dma::Rx<I2C>

Source§

impl<I2C: Instance> PeriAddress for stm32f4xx_hal::i2c::dma::Tx<I2C>

Source§

impl<SAI: Instance, const C: bool> PeriAddress for SAICH<SAI, C>

Source§

impl<SPI: Instance> PeriAddress for stm32f4xx_hal::spi::Rx<SPI>

Source§

impl<SPI: Instance> PeriAddress for stm32f4xx_hal::spi::Tx<SPI>

Source§

impl<SPIext: DualInstance, MS, TR, STD> PeriAddress for DualI2sDmaTarget<DualI2s<SPIext>, Ext, MS, TR, STD>
where DualI2s<SPIext>: DualI2sPeripheral,

I2S DMA reads from and writes to the data register

Source§

impl<SPIext: DualInstance, MS, TR, STD> PeriAddress for DualI2sDmaTarget<DualI2s<SPIext>, Main, MS, TR, STD>
where DualI2s<SPIext>: DualI2sPeripheral,

I2S DMA reads from and writes to the data register

Source§

impl<Serial_> PeriAddress for stm32f4xx_hal::serial::dma::Rx<Serial_>
where Serial_: Instance,

Source§

impl<Serial_> PeriAddress for stm32f4xx_hal::serial::dma::Tx<Serial_>
where Serial_: Instance,

Source§

impl<UART: Instance> PeriAddress for stm32f4xx_hal::serial::Rx<UART, u8>

Source§

impl<UART: Instance> PeriAddress for stm32f4xx_hal::serial::Tx<UART, u8>

Source§

impl<const C: u8> PeriAddress for CCR<TIM1, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM2, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM3, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM4, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM5, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM8, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM9, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM10, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM11, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM12, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM13, C>

Source§

impl<const C: u8> PeriAddress for CCR<TIM14, C>