Free the DMA block of continues physical memory that was previously allocated when the user called GxFpgaDmaTransfer API.
GxFpgaDmaFreeMemory (nHandle, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX3700 board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The first time the use calls the GxFpgaDmaTransfer API, a 64KB block of continues physical memory is allocated for the DMA usage. The user can free this block of physical memory back to the OS by calling this function.
The following example free any previously allocated block of 64KB of continues physical memory.
SHORT nStatus;
GxFpgaDmaFreeMemory (nHandle, &nStatus);