<< Previous | Next >> | |
|
int DMAsetBufDesc( char chanControl, unsigned int bufLength, dma_addr_t srcAddress, dma_addr_t destAddress, dma_addr_t linkAddress, dma_addr_t bufPtr, int bufSize );
Description
- This function loads a DMA buffer descriptor in memory with the values provided. The buffer needs to be described as either 12 or 16 bytes in size.
Parameters
- chanControl
- DMA channel control value
- bufLength
- DMA buffer length
- srcAddress
- DMA source address
- destAddress
- DMA destination address
- linkAddress
- DMA link address (of next buffer descriptor)
- bufPtr
- Physical address of buffer descriptor to fill
- bufSize
- Size of buffer descriptor in bytes (12 or 16 only)
Return Value
0
: Success
-EINVAL
: ErrorLibrary
- DMA.LIB
See Also
- DMAloadBufDesc, DMAsetDirect
Dynamic C Functions | << Previous | Next >> | rabbit.com |