4.4.3
DAT_Copy2D
Function
Arguments
Return Value
Description
Perform 2-dimensional data copy
UINT32 DAT_Copy2D(
UINT32 Type,
void *Src,
void *Dst,
UINT16 LineLen,
UINT16 LineCnt,
UINT16 LinePitch
);
Type
Src
Dst
LineLen
LineCnt
LinePitch
UINT32
Performs a 2-dimensional data copy using DMA or EDMA hardware
depending on the device. The arguments are checked for alignment
and the hardware configured accordingly. For best performance, ensure
that the source address and destination address are aligned on a
4-byte boundary and also ensure that the LineLen and LinePitch are
multiples of 4-bytes.
If the channel is busy with previous requests, this function will block
(spin) and wait till it frees up before submitting this request.
Note: The DAT module must be opened with the DAT_OPEN_2D flag
before calling this function. See DAT_Open().
There are 3 ways to submit a 2D transfer, 1D to 2D, 2D to 1D, and 2D
to 2D. This is specified using the type argument. In all cases, the num-
ber of bytes copied is LineLen X LineCnt. The 1D part of the transfer is
just a linear block of data. The 2D part is illustrated below:
Transfer type:
DAT_1D2D
DAT_2D1D
DAT_2D2D
Pointer to source data
Pointer to destination location
Number of bytes per line
Number of lines
Number of bytes between start of one line
to start of next line
Transfer ID
CSL API Reference
DAT
4-13
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?
Questions and answers