GxFpgaGetDriverSummary

Purpose

Returns the driver's name and version.

Syntax

GxFpgaGetDriverSummary (pszSummary ,nSummaryMaxLen, pdwVersion, pnStatus)

Parameters

Name
Type
Comments
pszSummary
PSTR
Buffer to the returned driver summary string.
nSummaryMaxLen
SHORT
The size of the summary string buffer.
pdwVersion
PDWORD
Returned version number. The high order word specifies the major version number where the low order word specifies the minor version number.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The returned string is: "GXFPGA Driver for GX35xx, GX37xx/e, GX38xxe. Version 2.4, Copyright © 2009-2018 Marvin Test Solutions, Inc."

Example

The following example prints the driver version:

 

CHAR sz[128];

DWORD dwVersion;

SHORT nStatus;

GxFpgaGetDriverSummary (sz, sizeof sz, &dwVersion, &nStatus);

printf("Driver Version %d.%d", (INT)(dwVersion>>16), (INT)

    dwVersion &0xFFFF);

 

See Also

GxFpgaGetBoardSummary, GxFpgaGetErrorString