PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
stc_dma_config Struct Reference

DMA configuration. More...

#include <dma.h>

Data Fields

boolean_t bEnable
 Overall DMA channel enable (only set by Enable_Dma_Channel()) More...
 
boolean_t bPause
 Pause bit of DMA (only set by Enable_Dma_Channel()) More...
 
boolean_t bSoftwareTrigger
 Trigger bit for software transfer (only set by Enable_Dma_Channel()) More...
 
uint8_t u8DmaChannel
 DmaChannel for recent configuration. More...
 
en_dma_idreq_t enDmaIdrq
 ID Request number (see en_dma_idreq_t for details) More...
 
uint8_t u8BlockCount
 Block counter. More...
 
uint16_t u16TransferCount
 Transfer counter, set TC = Number of Transfers - 1! More...
 
en_dma_transfermode_t enTransferMode
 DMA transfer mode (see en_dma_transfermode_t for details) More...
 
en_dma_transferwidth_t enTransferWdith
 DMA transfer width (see en_dma_transferwidth_t for details) More...
 
uint32_t u32SourceAddress
 Source address. More...
 
uint32_t u32DestinationAddress
 Destination address. More...
 
boolean_t bFixedSource
 TRUE = source address not increased. More...
 
boolean_t bFixedDestination
 TRUE = destiantion address not increased. More...
 
boolean_t bReloadCount
 TRUE = count is reloaded. More...
 
boolean_t bReloadSource
 TRUE = source address is reloaded. More...
 
boolean_t bReloadDestination
 TRUE = destination address is reloaded. More...
 
boolean_t bErrorInterruptEnable
 TRUE = interrupt on error ocurrance. More...
 
boolean_t bCompletionInterruptEnable
 TRUE = interrupt on DMA tranfer completion. More...
 
boolean_t bEnableBitMask
 FALSE = Clear EB (bEnable) bit on completion (mandatory for transfer end!) More...
 
func_ptr_t pfnCallback
 Callback on sucessful DMA transfer. More...
 
func_ptr_arg1_t pfnErrorCallback
 Callback(uint8_t) on errornous DMA transfer. More...
 
uint8_t u8ErrorStopStatus
 Error code from Stop Status. More...
 

Detailed Description

DMA configuration.

Definition at line 209 of file dma.h.

Field Documentation

boolean_t bCompletionInterruptEnable

TRUE = interrupt on DMA tranfer completion.

Definition at line 228 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bEnable

Overall DMA channel enable (only set by Enable_Dma_Channel())

Definition at line 211 of file dma.h.

Referenced by Dma_Set_Channel().

boolean_t bEnableBitMask

FALSE = Clear EB (bEnable) bit on completion (mandatory for transfer end!)

Definition at line 229 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bErrorInterruptEnable

TRUE = interrupt on error ocurrance.

Definition at line 227 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bFixedDestination

TRUE = destiantion address not increased.

Definition at line 223 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bFixedSource

TRUE = source address not increased.

Definition at line 222 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bPause

Pause bit of DMA (only set by Enable_Dma_Channel())

Definition at line 212 of file dma.h.

Referenced by Dma_Set_Channel().

boolean_t bReloadCount

TRUE = count is reloaded.

Definition at line 224 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bReloadDestination

TRUE = destination address is reloaded.

Definition at line 226 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bReloadSource

TRUE = source address is reloaded.

Definition at line 225 of file dma.h.

Referenced by Dma_Init_Channel().

boolean_t bSoftwareTrigger

Trigger bit for software transfer (only set by Enable_Dma_Channel())

Definition at line 213 of file dma.h.

Referenced by Dma_Set_Channel().

en_dma_idreq_t enDmaIdrq

ID Request number (see en_dma_idreq_t for details)

Definition at line 215 of file dma.h.

Referenced by Dma_Init_Channel().

en_dma_transfermode_t enTransferMode

DMA transfer mode (see en_dma_transfermode_t for details)

Definition at line 218 of file dma.h.

Referenced by Dma_Init_Channel().

en_dma_transferwidth_t enTransferWdith

DMA transfer width (see en_dma_transferwidth_t for details)

Definition at line 219 of file dma.h.

Referenced by Dma_Init_Channel().

func_ptr_t pfnCallback

Callback on sucessful DMA transfer.

Definition at line 230 of file dma.h.

Referenced by Dma_Init_Channel().

func_ptr_arg1_t pfnErrorCallback

Callback(uint8_t) on errornous DMA transfer.

Definition at line 231 of file dma.h.

Referenced by Dma_Init_Channel().

uint16_t u16TransferCount

Transfer counter, set TC = Number of Transfers - 1!

Definition at line 217 of file dma.h.

Referenced by Dma_Init_Channel().

uint32_t u32DestinationAddress

Destination address.

Definition at line 221 of file dma.h.

Referenced by Dma_Init_Channel().

uint32_t u32SourceAddress

Source address.

Definition at line 220 of file dma.h.

Referenced by Dma_Init_Channel().

uint8_t u8BlockCount

Block counter.

Definition at line 216 of file dma.h.

Referenced by Dma_Init_Channel().

uint8_t u8DmaChannel

DmaChannel for recent configuration.

Definition at line 214 of file dma.h.

Referenced by Dma_DeInit_Channel(), Dma_Init_Channel(), and Dma_Set_Channel().

uint8_t u8ErrorStopStatus

Error code from Stop Status.

Definition at line 232 of file dma.h.


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