Backplane api miscellaneous functions – ProSoft Technology MVI69-ADM User Manual
Page 220

Backplane API Functions
MVI-ADM ♦ 'C' Programmable
Developer's Guide
'C' Programmable Application Development Module
Page 220 of 342
ProSoft Technology, Inc.
February 20, 2013
8.6
Backplane API Miscellaneous Functions
MVIbp_GetVersionInfo
Syntax
int MVIbp_GetVersionInfo(MVIHANDLE handle, MVIBPVERSIONINFO *verinfo);
Parameters
handle
Handle returned by previous call to MVIbp_Open
verinfo
Pointer to structure of type MVIBPVERSIONINFO
Description
MVIbp_GetVersionInfo retrieves the current version of the API library and the
backplane device driver. The information is returned in the structure verinfo.
handle must be a valid handle returned from MVIbp_Open.
The MVIBPVERSIONINFO structure is defined as follows:
typedef struct tagMVIBPVERSIONINFO
{
WORD APISeries; /* API series */
WORD APIRevision; /* API revision */
WORD BPDDSeries;/* Backplane device driver series */
WORD BPDDRevision; /* Backplane device driver revision */
BYTE Reserved[8]; /* Reserved */ (MVI94 Only)
} MVIBPVERSIONINFO;
Return Value
MVI_SUCCESS
The version information was read successfully.
MVI_ERR_NOACCESS
handle does not have access
Example
MVIHANDLE Handle;
MVIBPVERSIONINFO verinfo;
/* print version of API library */
MVIbp_GetVersionInfo(Handle,&verinfo);
printf("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);
printf("Driver Series %d, Rev %d\n", verinfo.BPDDSeries, verinfo.BPDDRevision);