Publication 1756-RM004B-EN-P - October 2000
Serial Port API 5-35
Miscellaneous Functions
MVIsp_GetVersionInfo
Syntax:
int MVIsp_GetVersionInfo(MVISPVERSIONINFO *verinfo);
Parameters:
verinfo pointer to structure of type MVISPVERSIONINFO
Description:
MVIsp_GetVersionInfo retrieves the current version of the API. The
version information is returned in the structure verinfo.
The MVISPVERSIONINFO structure is defined as follows:
typedef struct tagMVISPVERSIONINFO
{
WORD APISeries; /* API series */
WORD APIRevision; /* API revision */
} MVISPVERSIONINFO;
Return Value:
MVI_SUCCESS the version information was read successfully.
Example:
MVISPVERSIONINFO verinfo;
/* print version of API library */
MVIsp_GetVersionInfo(&verinfo);
printf (“Library Series %d, Rev %d\n”, verinfo.APISeries, verinfo.APIRevision);