MODDMA GPDMA Controller
New features: transfer pins to memory buffer under periodic timer control and send double buffers to DAC
Dependents:
FirstTest
WaveSim
IO-dma-memmem
DACDMAfuncgenlib
... more
« Back to documentation index
MODDMA_Config Class Reference
The MODDMA configuration system.
More...
#include <MODDMA.h >
Public Member Functions
class MODDMA_Config * attach_tc (void(*fptr)(void))
Attach a callback to the TC IRQ configuration.
class MODDMA_Config * attach_err (void(*fptr)(void))
Attach a callback to the ERR IRQ configuration.
template<typename T >
class MODDMA_Config * attach_tc (T *tptr, void(T::*mptr)(void))
Attach a callback to the TC IRQ configuration.
template<typename T >
class MODDMA_Config * attach_err (T *tptr, void(T::*mptr)(void))
Attach a callback to the ERR IRQ configuration.
Protected Attributes
uint32_t ChannelNum
DMA channel number, should be in range from 0 to 7.
uint32_t TransferSize
Length/Size of transfer.
uint32_t TransferWidth
Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_m2m only.
uint32_t SrcMemAddr
Physical Src Addr, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::m2p.
uint32_t DstMemAddr
Physical Destination Address, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::p2m.
uint32_t TransferType
Transfer Type.
uint32_t SrcConn
Peripheral Source Connection type, used in case TransferType is chosen as.
uint32_t DstConn
Peripheral Destination Connection type, used in case TransferType is chosen as.
uint32_t DMALLI
Linker List Item structure data address if there's no Linker List, set as '0'.
uint32_t DMACSync
DMACSync if required.
Detailed Description
The MODDMA configuration system.
Author: Andy Kirkham
See also: http://mbed.org/cookbook/MODDMA_Config
MODDMA
The MODDMA API
MODDMA_Config defines a configuration that can be passed to the MODDMA controller instance to perform a GPDMA data transfer.
Definition at line 51 of file MODDMA.h .
Member Function Documentation
Attach a callback to the ERR IRQ configuration.
Parameters:
fptr A function pointer to call
Returns: this
Definition at line 132 of file MODDMA.h .
class MODDMA_Config * attach_err
(
T *
tptr ,
void(T::*)(void)
mptr
)
Attach a callback to the ERR IRQ configuration.
Parameters:
tptr A template pointer to the calling object
mptr A method pointer within the object to call.
Returns: this
Definition at line 160 of file MODDMA.h .
Attach a callback to the TC IRQ configuration.
Parameters:
fptr A function pointer to call
Returns: this
Definition at line 121 of file MODDMA.h .
class MODDMA_Config * attach_tc
(
T *
tptr ,
void(T::*)(void)
mptr
)
Attach a callback to the TC IRQ configuration.
Parameters:
tptr A template pointer to the calling object
mptr A method pointer within the object to call.
Returns: this
Definition at line 145 of file MODDMA.h .
Field Documentation
DMA channel number, should be in range from 0 to 7.
Definition at line 58 of file MODDMA.h .
DMACSync if required.
Definition at line 67 of file MODDMA.h .
Linker List Item structure data address if there's no Linker List, set as '0'.
Definition at line 66 of file MODDMA.h .
Peripheral Destination Connection type, used in case TransferType is chosen as.
Definition at line 65 of file MODDMA.h .
Physical Destination Address, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::p2m.
Definition at line 62 of file MODDMA.h .
Peripheral Source Connection type, used in case TransferType is chosen as.
Definition at line 64 of file MODDMA.h .
Physical Src Addr, used in case TransferType is chosen as MODDMA::GPDMA_TRANSFERTYPE::m2m or MODDMA::GPDMA_TRANSFERTYPE::m2p.
Definition at line 61 of file MODDMA.h .
Length/Size of transfer.
Definition at line 59 of file MODDMA.h .
Transfer Type.
Definition at line 63 of file MODDMA.h .
Transfer width - used for TransferType is GPDMA_TRANSFERTYPE_m2m only.
Definition at line 60 of file MODDMA.h .