Download EDMA3 Driver
Transcript
Run-Time Interfaces/Integration Guide 3.3.3.11 EDMA3_DRV_setDestIndex () Prototype EDMA3_DRV_Result EDMA3_DRV_setDestIndex ( EDMA3_DRV_Handle hEdma, unsigned int lCh, int destBIdx, int destCIdx ); Description DMA destination index setup. It is used to program the destination B index and destination C index. DSTBIDX is a 16-bit signed value (2s complement) used for destination address modification between each array in the 2nd dimension. Valid values for DSTBIDX are between –32768 and 32767. It provides a byte address offset from the beginning of the destination array to the beginning of the next destination array within the current frame. It applies to both A-synchronized and AB-synchronized transfers. Arguments DSTCIDX is a 16-bit signed value (2s complement) used for destination address modification in the 3rd dimension. Valid values are between –32768 and 32767. It provides a byte address offset from the beginning of the current array (pointed to by DST address) to the beginning of the first destination array TR in the next frame. It applies to both Asynchronized and AB-synchronized transfers. Note that when DSTCIDX is applied, the current array in an A-synchronized transfer is the last array in the frame, while the current array in a 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 destination indices are to be configured. <arg3> destBIdx [IN] Destination B index. <arg4> destCIdx [IN] Destination C index. Return value EDMA3_DRV_SOK or EDMA3_DRV Error Code in case of error. Calling constraints Example result = EDMA3_DRV_setDestIndex (hEdma,chId,desbidx, descidx); Comments This function is re-entrant for unique lCh values. It is non-reentrant for same lCh value. See Also Errors EDMA3_DRV_E_INVALID_PARAM A-40