#[repr(C)]
pub struct LL_DMA_InitTypeDef { pub PeriphOrM2MSrcAddress: u32, pub MemoryOrM2MDstAddress: u32, pub Direction: u32, pub Mode: u32, pub PeriphOrM2MSrcIncMode: u32, pub MemoryOrM2MDstIncMode: u32, pub PeriphOrM2MSrcDataSize: u32, pub MemoryOrM2MDstDataSize: u32, pub NbData: u32, pub PeriphRequest: u32, pub Priority: u32, }

Fields§

§PeriphOrM2MSrcAddress: u32

Specifies the peripheral base address for DMA transfer or as Source base address in case of memory to memory transfer direction. This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF.

§MemoryOrM2MDstAddress: u32

Specifies the memory base address for DMA transfer or as Destination base address in case of memory to memory transfer direction. This parameter must be a value between Min_Data = 0 and Max_Data = 0xFFFFFFFF.

§Direction: u32

Specifies if the data will be transferred from memory to peripheral, from memory to memory or from peripheral to memory. This parameter can be a value of [DMA_LL_EC_DIRECTION] This feature can be modified afterwards using unitary function [LL_DMA_SetDataTransferDirection()]

§Mode: u32

Specifies the normal or circular operation mode. This parameter can be a value of [DMA_LL_EC_MODE] data transfer direction is configured on the selected Channel This feature can be modified afterwards using unitary function [LL_DMA_SetMode()]

Notes

  • The circular buffer mode cannot be used if the memory to memory
§PeriphOrM2MSrcIncMode: u32

Specifies whether the Peripheral address or Source address in case of memory to memory transfer direction is incremented or not. This parameter can be a value of [DMA_LL_EC_PERIPH] This feature can be modified afterwards using unitary function [LL_DMA_SetPeriphIncMode()]

§MemoryOrM2MDstIncMode: u32

Specifies whether the Memory address or Destination address in case of memory to memory transfer direction is incremented or not. This parameter can be a value of [DMA_LL_EC_MEMORY] This feature can be modified afterwards using unitary function [LL_DMA_SetMemoryIncMode()]

§PeriphOrM2MSrcDataSize: u32

Specifies the Peripheral data size alignment or Source data size alignment (byte, half word, word) in case of memory to memory transfer direction. This parameter can be a value of [DMA_LL_EC_PDATAALIGN] This feature can be modified afterwards using unitary function [LL_DMA_SetPeriphSize()]

§MemoryOrM2MDstDataSize: u32

Specifies the Memory data size alignment or Destination data size alignment (byte, half word, word) in case of memory to memory transfer direction. This parameter can be a value of [DMA_LL_EC_MDATAALIGN] This feature can be modified afterwards using unitary function [LL_DMA_SetMemorySize()]

§NbData: u32

Specifies the number of data to transfer, in data unit. The data unit is equal to the source buffer configuration set in PeripheralSize or MemorySize parameters depending in the transfer direction. This parameter must be a value between Min_Data = 0 and Max_Data = 0x0000FFFF This feature can be modified afterwards using unitary function [LL_DMA_SetDataLength()]

§PeriphRequest: u32

Specifies the peripheral request. This parameter can be a value of [DMAMUX_LL_EC_REQUEST] This feature can be modified afterwards using unitary function [LL_DMA_SetPeriphRequest()]

§Priority: u32

Specifies the channel priority level. This parameter can be a value of [DMA_LL_EC_PRIORITY] This feature can be modified afterwards using unitary function [LL_DMA_SetChannelPriorityLevel()]

Trait Implementations§

source§

impl Clone for LL_DMA_InitTypeDef

source§

fn clone(&self) -> LL_DMA_InitTypeDef

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LL_DMA_InitTypeDef

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for LL_DMA_InitTypeDef

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.