Prosoft-technology MVI69-ADM Manuel d'utilisateur Page 220

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 342
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 219
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);
Vue de la page 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 341 342

Commentaires sur ces manuels

Pas de commentaire