Prosoft-technology MVI69-ADM Manual de usuario Pagina 221

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 220
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);
Vista de pagina 220
1 2 ... 216 217 218 219 220 221 222 223 224 225 226 ... 341 342

Comentarios a estos manuales

Sin comentarios