DMA
4.6.23
DMA_Open
Function
Arguments
Return Value
Description
Example
4-46
Opens a DMA channel for use
DMA_HANDLE DMA_Open(
int ChaNum,
UINT32 Flags
);
ChaNum
Flags
Device Handle
Before a DMA channel can be used, it must first be opened by this
function. Once opened, it cannot be opened again until closed. See
DMA_Close(). You have the option of either specifying exactly which
physical channel to open or you can let the library pick an unused one
for you by specifying DMA_CHAANY. The return value is a unique device
handle that you use in subsequent DMA API calls. If the open fails, INV
is returned.
If the DMA_OPEN_RESET is specified, the DMA channel registers are
set to their power-on defaults and the channel interrupt is disabled and
cleared.
DMA_HANDLE hDma;
hDma = DMA_Open(DMA_CHAANY,DMA_OPEN_RESET);
DMA channel to open:
DMA_CHAANY
DMA_CHA0
DMA_CHA1
DMA_CHA2
DMA_CHA3
Open flags (logical OR of any of the following):
DMA_OPEN_RESET
Handle to newly opened device
Need help?
Do you have a question about the TMS320C6000 and is the answer not in the manual?