ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data
Prototype
ADMXRC_STATUS ADMXRC_UnsetupDMA( ADMXRC_HANDLE Card, ADMXRC_DMADESC DMADesc);
Arguments
Argument | Type | Purpose |
Card | In | Handle of card |
DMADesc | In | The DMA descriptor to free |
Return value
Value | Meaning |
ADMXRC_SUCCESS | The DMA descriptor was successfully freed |
ADMXRC_INVALID_HANDLE | Card was not a valid handle to card |
ADMXRC_INVALID_DMADESC | DMADesc was not a valid DMA descriptor |
Description
This function undoes a call to ADMXRC_SetupDMA. When a DMA descriptor is no longer required, it should be freed using ADMXRC_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.