Run-Time Interfaces/Integration Guide
I-A-39
3.3.3.10
EDMA3_DRV_setSrcIndex ()
Prototype
EDMA3_DRV_Result EDMA3_DRV_setSrcIndex (
EDMA3_DRV_Handle hEdma, unsigned int lCh, int srcBIdx, int
srcCIdx );
Description
DMA source index setup.
It is used to program the source B index and source C index.
SRCBIDX is a 16-bit signed value (2s complement) used for
source address modification between each array in the 2nd
dimension. Valid values for SRCBIDX are between –32768 and
32767. It provides a byte address offset from the beginning of
the source array to the beginning of the next source array. It
applies to both A-synchronized and AB-synchronized transfers.
SRCCIDX is a 16-bit signed value (2s complement) used for
source address modification in the 3rd dimension. Valid values
for SRCCIDX are between –32768 and 32767. It provides a
byte address offset from the beginning of the current array
(pointed to by SRC address) to the beginning of the first source
array in the next frame. It applies to both A-synchronized and
AB-synchronized transfers. Note that when SRCCIDX is
applied, the current array in an A-synchronized transfer is the
last array in the frame, while the current array in an AB-
synchronized transfer is the first array in the frame.
<arg1>
hEdma
[IN] Handle to the EDMA3 Driver Instance.
<arg2>
lCh
[IN]
Logical Channel for which source indices
are to be configured
A
rg
u
m
e
n
ts
<arg3>
srcBIdx
[IN]
Source B index
<arg4>
srcCIdx
[IN]
Source C index
Return value
EDMA3_DRV_SOK or EDMA3_DRV Error Code in case of error.
Calling
constraints
Example
result = EDMA3_DRV_setSrcIndex (hEdma, chId, srcbidx,
srccidx);
Comments
This function is re-entrant for unique lCh values. It is non-re-
entrant for same lCh value.
See Also
Errors
EDMA3_DRV_E_INVALID_PARAM
Summary of Contents for EDMA3
Page 12: ......
Page 17: ...EDMA3 Driver Introduction I 1 5 ...
Page 20: ......
Page 40: ...Run Time Interfaces Integration Guide A 12 EDMA3_DRV_IOCTL_MAX_IOCTL Max IOCTL ...
Page 75: ...Run Time Interfaces Integration Guide I A 47 Errors EDMA3_DRV_E_INVALID_PARAM ...
Page 107: ...Run Time Interfaces Integration Guide I A 79 ...