DMA_CB_TypeDef Struct ReferenceEMLIB > DMA

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 using callback feature). 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.

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.