DMA_CB_TypeDef Struct Reference
[DMA]

Callback structure that can be used to define DMA complete actions. More...

#include <em_dma.h>

Collaboration diagram for DMA_CB_TypeDef:
Collaboration graph
[legend]

Data Fields

DMA_FuncPtr_TypeDef cbFunc
void * userPtr
uint8_t primary

Detailed Description

Callback structure that can be used to define DMA complete actions.

A reference to this structure is only stored in the primary descriptor for a channel (if callback feature is used). If callback is required for both primary and alternate descriptor completion, this must be handled by one common callback, using the provided 'primary' parameter with the callback function.

Definition at line 150 of file em_dma.h.


Field Documentation

Pointer to callback function to invoke when DMA transfer cycle done. Notice that this function is invoked in interrupt context, and therefore should be short and non-blocking.

Definition at line 157 of file em_dma.h.

Referenced by DMA_IRQHandler().

For internal use only: Indicates if next callback applies to primary or alternate descriptor completion. Mainly useful for ping-pong DMA cycles. Set this value to 0 prior to configuring callback handling.

Definition at line 167 of file em_dma.h.

Referenced by DMA_ActivateScatterGather(), and DMA_IRQHandler().

User defined pointer to provide with callback function.

Definition at line 160 of file em_dma.h.

Referenced by DMA_IRQHandler().


The documentation for this struct was generated from the following file: