ProSoft Technology MVI69-ADM User Manual

Page 221

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Backplane API Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 221 of 342

February 20, 2013

MVIbp_GetModuleInfo

Syntax

int MVIbp_GetModuleInfo(MVIHANDLE handle, MVIBPMODULEINFO *modinfo);

Parameters

handle

Handle returned by previous call to MVIbp_Open

modinfo

Pointer to structure of type MVIBPMODULEINFO

Description
MVIbp_GetModuleInfo retrieves identity information for the module. The
information is returned in the structure modinfo.

handle must be a valid handle returned from MVIbp_Open.

The MVIBPMODULEINFO structure is defined as follows:

typedef struct tagMVIBPMODULEINFO
{
WORD VendorID; // Reserved
WORD DeviceType; // Reserved
WORD ProductCode; // Device model code
BYTE MajorRevision; // Device major revision
BYTE MinorRevision; // Device minor revision
DWORD SerialNo; // Serial number
BYTE Name[32]; // Device name (string)
BYTE Month; // Date of manufacture - month
BYTE Day; // Date of manufacture - day
WORD Year; // Date of manufacture - year
} MVIBPMODULEINFO;

Return Value

MVI_SUCCESS

The version information was read successfully.

MVI_ERR_NOACCESS

handle does not have access

Example

MVIHANDLE Handle;
MVIBPMODULEINFO modinfo;
/* print module name */
MVIbp_GetModuleInfo(Handle,&modinfo);
printf("Name is %s\n", modinfo.Name);

Advertising