Texas Instruments TMS320C6000 Reference Manual page 113

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

Advertisement

Example
4.7.21
EDMA_MK_SRC
Macro
Arguments
Return Value
Description
Example
UINT32 Rld;
EDMA_HANDLE hEdmaTable;
hEdmaTable = EDMA_AllocTable(–1);
Rld = DMA_MK_RLD(hEdmaTable,0x0020);
Rld = DMA_MK_RLD(
EDMA_RLD_LINK_OF(hEdmaTable),
EDMA_RLD_ELERLD_OF(0x0020)
);
Makes a value suitable for the EDMA SRC parameter
EDMA_MK_SRC(
src
)
Source address:
src
EDMA_SRC_SRC_OF(x)
Constructed parameter value
SRC Value
Use this macro to make a value suitable for the EDMA SRC parameter.
Although not really necessary, this macro is included for orthogonality
and code readability.
The default SRC parameter value is EDMA_SRC_DEFAULT.
Use of the EDMA_MK macros makes it simpler to construct parameter
values based on field values. You have a choice of using integer
constants, integer variables, or the symbolic constants for arguments.
All field values are right justified.
Refer to the TMS320C6000 Peripherals Reference Guide (literature
number SPRU190) for descriptions of the arguments.
UINT32 Src;
Src = DMA_MK_SRC(0x80000000);
Src = DMA_MK_SRC(
EDMA_SRC_SRC_OF(0x80000000)
);
CSL API Reference
EDMA
4-65

Advertisement

Table of Contents
loading

Table of Contents