This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi User,
Have you looked at the source code for our GUI? It includes a command API (API.c) which wraps the USB HID commands into C++ functions. This source code is included in the GUI download on the NIRscan Nano EVM page, and more documentation is available in the doxygen documentation once the GUI sources are installed.
In addition to Eric's response, the GUI source code uses a GNU Public source a multi-platform (Windows, Linux, and Mac) HDI library called HDIAPI to handle the HID communications. This is in the source under the hdapi-master directory. In the GUI source code, there is a USB Wrapper functions that interface with the HDIAPI to send the commands. You can find this under the usb.cpp file. The wrapper functions has initialization, opening and closing USB ports, read and write functions. There is also a C-callable APIS that support all the commands of the NIRscan Nano under API.cpp. Thus, for your program start with these files to send commands to the NIRscan Nano.
Best regards,
Pedro