mikroSDK Reference Manual
|
DMA Configuration Structure prototype. More...
Data Fields | |
uint8_t | module |
uint8_t | stream |
uint8_t | channel |
dma_direction_t | direction |
dma_mode_t | mode |
bool | src_inc |
dma_data_align_t | data_align_source |
dma_burst_size_t | burst_size_source |
bool | dst_inc |
dma_data_align_t | data_align_destination |
dma_burst_size_t | burst_size_destination |
dma_priority_t | priority |
uint32_t | addr_src |
uint32_t | addr_dst |
size_t | transfer_length |
Example
uint8_t dma_config_t::module |
Specifies the module.
uint8_t dma_config_t::stream |
Specifies the stream.
uint8_t dma_config_t::channel |
Specifies the channel used for the specified stream.
dma_direction_t dma_config_t::direction |
Specifies if the data will be transferred from memory to peripheral, from memory to memory, from peripheral to memory, or from peripheral to peripheral. This parameter can be a value of dma_direction_t
dma_mode_t dma_config_t::mode |
Specifies the operation mode of the DMA Stream. This parameter can be a value of dma_mode_t
bool dma_config_t::src_inc |
Specifies whether the Source address register should be incremented or not.
dma_data_align_t dma_config_t::data_align_source |
Specifies the Source data width. This parameter can be a value of dma_data_align_t
dma_burst_size_t dma_config_t::burst_size_source |
Specifies the Burst transfer configuration for the source transfers. It specifies the amount of data to be transferred in a single non interruptable transaction. This parameter can be a value of dma_burst_size_t
bool dma_config_t::dst_inc |
Specifies whether the Destination address register should be incremented or not.
dma_data_align_t dma_config_t::data_align_destination |
Specifies the Destination data width. This parameter can be a value of dma_data_align_t
dma_burst_size_t dma_config_t::burst_size_destination |
Specifies the Burst transfer configuration for the destination transfers. It specifies the amount of data to be transferred in a single non interruptable transaction. This parameter can be a value of dma_burst_size_t
dma_priority_t dma_config_t::priority |
Specifies the software priority for the DMA Stream. This parameter can be a value of dma_priority_t
uint32_t dma_config_t::addr_src |
Address to transfer from.
uint32_t dma_config_t::addr_dst |
Address to transfer to.
size_t dma_config_t::transfer_length |
Number of bytes to transfer.