Dma - Texas Instruments TMS320C6000 Reference Manual

Chip support library api
Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

DMA

4.6 DMA
4.6.1
DMA_AllocGlobalReg
Function
Arguments
Return Value
Description
4-22
Allocates a global DMA register
UINT32 DMA_AllocGlobalReg(
DMA_GBL RegType,
UINT32 InitVal
);
RegType
InitVal
Global Register ID
Since the DMA global registers are shared, they must be controlled us-
ing resource management. This is done using DMA_AllocGlobal-
Reg() and DMA_FreeGlobalReg() functions. Allocating a register
ensures that it will not be allocated again until it is freed. The register ID
may then be used to get or set the register value by calling DMA_Get-
GlobalReg() and DMA_SetGlobalReg() respectively. If the register
cannot be allocated, a register id of 0 is returned.
The register ID may be directly used with the DMA_MK_PRICTL macro.
DMA_GBL_ADDRRLD
Allocate global address register for use as DMA DST RELOAD or
DMA SRC RELOAD. Will allocate one of the following DMA regis-
ters:
Global Address Register B
Global Address Register C
Global Address Register D
DMA_GBL_INDEX
Allocate global index register for use as DMA INDEX. Will allocate
one of the following DMA registers:
Global Index Register A
Global Index Register B
Global register type; must be one of the
following:
DMA_GBL_ADDRRLD
DMA_GBL_INDEX
DMA_GBL_CNTRLD
DMA_GBL_SPLIT
Value to initialize the register to
Unique ID number for the global register

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Table of Contents