DMA_CfgChannel_TypeDef Struct Reference

Configuration structure for a channel.

#include <em_dma.h>

Data Fields

bool highPri
 Select if channel priority is in the high or default priority group with respect to arbitration.
 
bool enableInt
 Select if interrupt will be enabled for channel (triggering interrupt handler when dma_done signal is asserted).
 
uint32_t select
 Channel control specifying the source of DMA signals.
 
DMA_CB_TypeDefcb
 User definable callback handling configuration.
 

Configuration structure for a channel.

Field Documentation

◆ highPri

bool DMA_CfgChannel_TypeDef::highPri

Select if channel priority is in the high or default priority group with respect to arbitration.

Within a priority group, lower numbered channels have higher priority than higher numbered channels.

◆ enableInt

bool DMA_CfgChannel_TypeDef::enableInt

Select if interrupt will be enabled for channel (triggering interrupt handler when dma_done signal is asserted).

It should normally be enabled if using the callback feature for a channel, and disabled if not using the callback feature.

◆ select

uint32_t DMA_CfgChannel_TypeDef::select

Channel control specifying the source of DMA signals.

If accessing peripherals, use one of the DMAREQ_nnn defines available for the peripheral. Set to 0 for memory-to-memory DMA cycles.

◆ cb

DMA_CB_TypeDef* DMA_CfgChannel_TypeDef::cb

User definable callback handling configuration.

Refer to structure definition for details. The callback is invoked when specified DMA cycle is complete (when dma_done signal asserted). Callback is invoked in interrupt context, and should be efficient and non-blocking. Set to NULL to not use the callback feature.

Note
Referenced structure is used by the interrupt handler, and must be available until no longer used. Thus, in most cases it should not be located on the stack.