#[repr(C)]pub struct DMA_InitTypeDef {
pub Direction: u32,
pub PeriphInc: u32,
pub MemInc: u32,
pub PeriphDataAlignment: u32,
pub MemDataAlignment: u32,
pub Mode: u32,
pub Priority: u32,
}Expand description
@brief DMA Configuration Structure definition
Fields§
§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 @ref DMA_Data_transfer_direction
PeriphInc: u32< Specifies whether the Peripheral address register should be incremented or not. This parameter can be a value of @ref DMA_Peripheral_incremented_mode
MemInc: u32< Specifies whether the memory address register should be incremented or not. This parameter can be a value of @ref DMA_Memory_incremented_mode
PeriphDataAlignment: u32< Specifies the Peripheral data width. This parameter can be a value of @ref DMA_Peripheral_data_size
MemDataAlignment: u32< Specifies the Memory data width. This parameter can be a value of @ref DMA_Memory_data_size
Mode: u32< Specifies the operation mode of the DMAy Channelx. This parameter can be a value of @ref DMA_mode @note The circular buffer mode cannot be used if the memory-to-memory data transfer is configured on the selected Channel
Priority: u32< Specifies the software priority for the DMAy Channelx. This parameter can be a value of @ref DMA_Priority_level
Trait Implementations§
Source§impl Clone for DMA_InitTypeDef
impl Clone for DMA_InitTypeDef
Source§fn clone(&self) -> DMA_InitTypeDef
fn clone(&self) -> DMA_InitTypeDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more