Serial port api miscellaneous functions – ProSoft Technology MVI69-ADM User Manual

Page 265

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Serial Port Library Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 265 of 342

February 20, 2013

9.5

Serial Port API 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);

Advertising