Triangulation Laser Sensors, RF605 Series
RF605 [Revision 2.0] 10th January 2011 valid for sensors with serial numbers 11000 and higher
28
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
lpusValue
-
pointer to USHORT/WORD-type variable containing
the result D.
Returned value:
If there are no data in the buffer, the function returns FALSE, otherwise the function re-
turns TRUE and fills the value
lpusValue.
15.12. Transmission of user data (RF60x_CustomCmd)
The function
RF60x_CustomCmd
is used for transmission and/or reception of data from
the sensor
.
Parameters:
hCOM
–
descriptor of the device obtained from function
RF60x_OpenPort or CreateFile;
pcInData
-
pointer to data array which will be transmitted to
RF605 sensor. If no data need to be transmitted,
pcInData
must be NULL and
dwIn-
Size
must be 0.
dwInSize
-
size of transmitted data. If no data need to be trans-
mitted, this parameter must be 0.
pcOutData
-
pointer to data array where data received from sensor
will be saved. If no data need to be received,
pcOutData
must
be NULL.
pdwOutSize
-
pointer to the variable containing size of data to be
received. If no data need to be received, this parameter must be NULL. After successful
receipt of data, the amount of read bytes will be recorded to the variable where this pa-
rameter points to.
Returned value:
If transmission or reception of bytes fails, the function returns FALSE, otherwise the
function returns TRUE
15.13. Functions for operation of sensors connected to FTDI-based
USB
To work with FTDI-based USB devices, this library supports functions operating through
D2XX library of FTDI. Performance of the functions is identical to that of the functions
used for operation through serial port, the main difference being the presence of
FTDI_
prefix in the function name, for example: ―getting result‖ function for serial port is
RF60x_Measure
while for FTDI USB devices it is
RF60x_FTDI_Measure.
BOOL RF60x_CustomCmd(
HANDLE
hCOM,
char *
pcInData,
DWORD
dwInSize,
char *
pcOutData,
DWORD *
pdwOutSize
);
Содержание RF603 Series
Страница 1: ......