HAMAMATSU
MCD CONTROLLER C7557
Chapter 2 Software Library
HAMAMATSU PHOTONICS K.K.
- 29 -
Checking Connected Devices
Description
Check that MCD controllers are connected for the specified SCSI 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
・・・・・・・
SCSI ID number
Specify the SCSI ID number of the connected device to be
checked.
Status
・・・
MCD controller status information.
Specify the pointer for the SENSOR_STATUS structure.
typedef struct tag_SENSOR_STATUS
{
int nSensorType;
/* sensor type */
int nHPixel;
/* number of horizontal pixels */
int nVPixel;
/* number of vertical pixels */
int nADType;
/* A/D type */
} SENSOR_STATUS;
Return Values
0x01
Normal completion
0x02
SCSI request cancelled by host
0x03
SCSI request could not be executed
0x04
SCSI request terminated by an error
0x80
Invalid request