C7557-01 DLL INSTRUCTION MANUAL
5-3
CHECKING CONNECTED DEVICES
Check that MCD controllers are connected for the specified USB ID numbers. The status
information is returned in the argument if a device is connected. If devices are connected
the return value is 1. If no device is connected the return value is 0x1001. An error is
returned in other cases.
Function name
WORD CheckSensor(ID, Status)
Format
WORD CheckSensor(WORD, SENSOR_STATUS*);
Arguments
ID
Status
Return code
0x01
0x1001 No connected
8
USB ID number
Specify the USB ID number of the connected device to be checked.
MCD controller status information.
Specify the pointer for the SENSOR_STATUS structure.
typedef struct tag_SENSOR_STATUS
{
int nSensorType;
int nHPixel;
int nVPixel;
int nADType;
} SENSOR_STATUS;
Normal completion
HAMAMATSU PHOTONICS K.K.
/* sensor type */
/* number of horizontal pixels */
/* number of vertical pixels */
/* A/D type */