GxFpgaDmaFreeMemory

Purpose

Free the DMA block of continues physical memory that was previously allocated when the user called GxFpgaDmaTransfer API.

Syntax

GxFpgaDmaFreeMemory (nHandle, pnStatus)

Parameters

Name
Type
Comments
nHandle

SHORT

Handle for a GX3700 board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

The following example free any previously allocated block of 64KB of continues physical memory.

 

SHORT nStatus;

GxFpgaDmaFreeMemory (nHandle, &nStatus);

 

See Also

GxFpgaDmaTransfer, GxFpgaGetErrorString