4.6.12
DMA_GetGlobalReg
Function
Arguments
Return Value
Description
Example
Reads a global DMA register that was previously
allocated by calling DMA_AllocGlobalReg()
UINT32 DMA_GetGlobalReg(
UINT32 RegId
);
RegId
Register Value
This function returns the register value of the global DMA register that
was previously allocated by calling DMA_AllocGlobalReg().
If you prefer not to use the alloc/free paradigm for the global register
management, the predefined register IDs may be used. You should be
aware that use of predefined register IDs precludes the use of alloc/
free. The list of predefined IDs are shown below:
DMA_GBL_ADDRRLDB
DMA_GBL_ADDRRLDC
DMA_GBL_ADDRRLDD
DMA_GBL_INDEXA
DMA_GBL_INDEXB
DMA_GBL_CNTRLDA
DMA_GBL_CNTRLDB
DMA_GBL_SPLITA
DMA_GBL_SPLITB
DMA_GBL_SPLITC
Note: DMA_GBL_ADDRRLDB denotes the same physical register as
DMA_GBL_SPLITB and DMA_GBL_ADDRRLDC denotes the same
physical register as DMA_GBL_SPLITC.
UINT32 RegId;
UINT32 RegValue;
/* allocate global index register and initialize it
/
RegId = DMA_AllocGlobalReg(DMA_GBL_
INDEX,0x00200040);
RegValue = DMA_GetGlobalReg(RegId);
Global register ID obtained from DMA_Alloc-
GlobalReg().
Value read from register
CSL API Reference
DMA
4-29
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?
Questions and answers