1 | typedef struct
|
2 | {
|
3 | uint32_t Channel; /*!< Specifies the channel used for the specified stream.
|
4 | This parameter can be a value of @ref DMA_Channel_selection */
|
5 |
|
6 | uint32_t Direction; /*!< Specifies if the data will be transferred from memory to peripheral,
|
7 | from memory to memory or from peripheral to memory.
|
8 | This parameter can be a value of @ref DMA_Data_transfer_direction */
|
9 |
|
10 | uint32_t PeriphInc; /*!< Specifies whether the Peripheral address register should be incremented or not.
|
11 | This parameter can be a value of @ref DMA_Peripheral_incremented_mode */
|
12 |
|
13 | uint32_t MemInc; /*!< Specifies whether the memory address register should be incremented or not.
|
14 | This parameter can be a value of @ref DMA_Memory_incremented_mode */
|
15 |
|
16 | uint32_t PeriphDataAlignment; /*!< Specifies the Peripheral data width.
|
17 | This parameter can be a value of @ref DMA_Peripheral_data_size */
|
18 |
|
19 | uint32_t MemDataAlignment; /*!< Specifies the Memory data width.
|
20 | This parameter can be a value of @ref DMA_Memory_data_size */
|
21 |
|
22 | uint32_t Mode; /*!< Specifies the operation mode of the DMAy Streamx.
|
23 | This parameter can be a value of @ref DMA_mode
|
24 | @note The circular buffer mode cannot be used if the memory-to-memory
|
25 | data transfer is configured on the selected Stream */
|
26 |
|
27 | uint32_t Priority; /*!< Specifies the software priority for the DMAy Streamx.
|
28 | This parameter can be a value of @ref DMA_Priority_level */
|
29 |
|
30 | uint32_t FIFOMode; /*!< Specifies if the FIFO mode or Direct mode will be used for the specified stream.
|
31 | This parameter can be a value of @ref DMA_FIFO_direct_mode
|
32 | @note The Direct mode (FIFO mode disabled) cannot be used if the
|
33 | memory-to-memory data transfer is configured on the selected stream */
|
34 |
|
35 | uint32_t FIFOThreshold; /*!< Specifies the FIFO threshold level.
|
36 | This parameter can be a value of @ref DMA_FIFO_threshold_level */
|
37 |
|
38 | uint32_t MemBurst; /*!< Specifies the Burst transfer configuration for the memory transfers.
|
39 | It specifies the amount of data to be transferred in a single non interruptible
|
40 | transaction.
|
41 | This parameter can be a value of @ref DMA_Memory_burst
|
42 | @note The burst mode is possible only if the address Increment mode is enabled. */
|
43 |
|
44 | uint32_t PeriphBurst; /*!< Specifies the Burst transfer configuration for the peripheral transfers.
|
45 | It specifies the amount of data to be transferred in a single non interruptible
|
46 | transaction.
|
47 | This parameter can be a value of @ref DMA_Peripheral_burst
|
48 | @note The burst mode is possible only if the address Increment mode is enabled. */
|
49 | }DMA_InitTypeDef;
|