4.6.22
DMA_MK_XFRCNT
Macro
Arguments
Return Value
Description
Example
Makes a value suitable for a transfer count register
DMA_MK_XFRCNT(
elecnt,
frmcnt
)
elecnt
frmcnt
XFRCNT Value
Use this macro to make a value suitable for a transfer count register.
The power-on default value is DMA_XFRCNT_DEFAULT.
Use of the DMA_MK macros makes it simpler to construct register val-
ues 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 XfrCnt;
XfrCnt = DMA_MK_XFRCNT(0x0100,0x0020);
XfrCnt = DMA_MK_XFRCNT(
DMA_XFRCNT_ELECNT_OF(0x0100),
DMA_XFRCNT_FRMCNT_OF(0x0020)
);
Element count:
DMA_XFRCNT_ELECNT_OF(x)
Frame count:
DMA_GBLCNT_FRMCNT_OF(x)
Constructed register value
CSL API Reference
DMA
4-45
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?
Questions and answers