Miscellaneous functions – ProSoft Technology MVI69E-LDM User Manual
Page 84

Contents
MVI69E-LDM ♦ "C" Programmable
Developer's Manual
Linux Application Development Module
Page 84 of 130
ProSoft Technology, Inc.
August 21, 2014
5.6
Miscellaneous Functions
MVI69_GetVersionInfo
Syntax
int MVI69_GetVersionInfo (MVI69HANDLE handle,
MVI69VERSIONINFO *verinfo);
Parameters
handle
handle returned by previous call to MVI69_Open
verinfo
pointer to structure of type MVI69VERSIONINFO
Description
MVI69_GetVersionInfo retrieves the current version of the API library and the backplane
device driver. This information is returned in the structure verinfo.
handle must be a valid handle returned from MVI69_Open.
The MVI69VERSIONINFO structure is defined as follows:
typedef struct tagMVI69VERSIONINFO
{
WORD APISeries; /* API series */
WORD APIRevision; /* API revision */
WORD DDSeries; /* Device driver series */
WORD DDRevision; /* Device driver revision */
} MVI69VERSIONINFO
Return Value
MVI69_SUCCESS
the version information was read successfully
MVI69_ERR_NOACCESS
handle does not have access
Example
MVI69HANDLE handle;
MVIBPVERSIONINFO verinfo;
/* print version of API library and driver */
MVI69_GetVersionInfo (handle, &verinfo);
printf("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);
printf("Driver Series &d, Rev %d\n, verinfo.DDSeries, verinfo.DDRevision);