EasyManua.ls Logo

GW Instek LCR-1100 - HID API Functions and System Notes

GW Instek LCR-1100
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
LCR-1000 Series
52
Here, CreateFile is used to open the HID device, where the
device path is obtained through the function
SetupDiGetInterfaceDeviceDetail.
ReadFile(
hDev, // Device handle, which is the return value of
CreateFile
recvBuffer, // Buffer for receiving data
IN_REPORT_LEN, // The length of the data to be read
&recvBytes, // The number of bytes of data actually
received
&ol); // Asynchronous mode
Here, ReadFile is used to read the input report sent by the HID
device through the interrupt IN transfer.
WriteFile(
hDev, // Device handle, which is the return value of
CreateFile
reportBuf, // Buffer with data to be sent
OUT_REPORT_LEN, // Length of data to be sent
&sendBytes, // The number of bytes of data actually
received
&ol); // Asynchronous mode
Here, WriteFile is used to transmit an output report to the HID
device.
Note
LCR-1000 only supports operating systems above
Windows7.
If user needs to write software by himself, please
understand the related knowledge of USB and USB-
HID first, which can be obtained from www.usb.org
website.

Related product manuals