ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
Prototype
ADMXRC2_STATUS ADMXRC2_UnsetupDMA( ADMXRC2_HANDLE Card, ADMXRC2_DMADESC DMADesc);
Arguments
Argument | Type | Purpose |
Card | In | Handle of card |
DMADesc | In | The DMA descriptor to free |
Return value
Value | Meaning |
ADMXRC2_SUCCESS | The DMA descriptor was successfully freed |
ADMXRC2_INVALID_HANDLE | Card was not a valid handle to card |
ADMXRC2_INVALID_DMADESC | DMADesc was not a valid DMA descriptor |
Description
This function undoes a call to ADMXRC2_SetupDMA. When a DMA descriptor is no longer required, it should be freed using ADMXRC2_UnsetupDMA. Provided that no other DMA descriptors exist for the buffer, the application buffer associated with the DMA descriptor is returned to an unlocked (swappable) state.
The DMADesc parameter specifies the DMA descriptor to free.