This function returns some information about a device (i.e. about the Irinos-System).
Definition
MSC_STATUS
MSC_GetDeviceInfo(
unsigned long Index,
unsigned long* BusType,
char UniqueID[MSC_MAX_UNIQUEID_SIZE]
);
Parameter
Index
Device number. The first device has always the number 0.
The number of available devices (=Irinos Systems) can be retrieved using MSC_EnumerateDevices.
BusType
Returns the bus type between the PC and the device. The only supported bus type is MSC_TYPE_SOCKET_XPORT (value 0x00000001).
UniqueID
Returns a 0-terminated ASCII string containing the IP network address.
MSC_MAX_UNIQUEID_SIZE has the value 40, thus the maximum string length is 40 bytes.
Return value
If successful, MSC_STATUS_SUCCESS will be returned. In case of an error, an error code will be returned.
Comments
In order to provide backward compatibility to older systems, the DLL also supports the bus type MSC_TYPE_USB_FTDI (value 0x00000002). This bus type is no more relevant for newer systems.
See also