Run-Time Interfaces/Integration Guide
A-38
3.3.3.9
EDMA3_DRV_setDestParams ()
Prototype
EDMA3_DRV_Result EDMA3_DRV_setDestParams (
EDMA3_DRV_Handle hEdma, unsigned int lCh, unsigned int
destAddr, EDMA3_DRV_AddrMode addrMode,
EDMA3_DRV_FifoWidth fifoWidth);
Description
DMA destination parameters setup.
It is used to program the destination address, destination side
addressing mode (INCR or FIFO) and the FIFO width in case
the addressing mode is FIFO.
In FIFO Addressing mode, memory location must be 32 bytes
aligned.
<arg1>
hEdma
[IN] Handle to the EDMA3 Driver Instance.
<arg2>
lCh
[IN]
Logical Channel for which the destination
parameters are to be configured
A
rg
u
m
e
n
ts
<arg3>
destAddr
[IN]
Destination address.
<arg4>
addrMode
[IN]
Address mode [FIFO or
Increment].
<arg5>
fifoWidth
[IN]
Width of FIFO (Valid only if
addrMode is FIFO)
Return value
EDMA3_DRV_SOK or EDMA3_DRV Error Code in case of error.
Calling
constraints
Example
result = EDMA3_DRV_setDestParams (hEdma, chId, (unsigned
int)(destBuff), EDMA3_DRV_ADDR_MODE_INCR,
EDMA3_DRV_W8BIT);
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,
EDMA3_DRV_E_ADDRESS_NOT_ALIGNED
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 ...