ProSoft Technology MVI69E-LDM User Manual
Page 85

MVI69E-LDM ♦ "C" Programmable
Contents
Linux Application Development Module
Developer's Manual
ProSoft Technology, Inc.
Page 85 of 130
August 21, 2014
MVI69_GetModuleInfo
Syntax
int MVI69_GetModuleInfo (MVI69HANDLE handle,
MVI69MODULEINFO *modinfo);
Parameters
handle
handle returned by previous call to MVI69_Open
modinfo
pointer to structure of type MVI69MODULEINFO
Description
MVI69_GetModuleInfo retrieves identity information for the module This information is
returned in the structure modinfo.
handle must be a valid handle returned from MVI69_Open.
The MVI69MODULEINFO 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) */
} MVI69MODULEINFO
Return Value
MVI69_SUCCESS
the module information was read successfully
MVI69_ERR_NOACCESS
handle does not have access
Example
MVI69HANDLE handle;
MVIBPMODULEINFO modinfo;
/* print module name */
MVI69_GetModuleInfo (handle, &modinfo);
printf("Name is %s\n", modinfo.Name);
See Also
MVI69_SetModuleInfo