Access USB devices on any platform
USBs are intended to be universal and so is libusb. The library works on all major platforms, including Windows, MacOS, and Linux. It provides a cross-platform API for communicating with USB hardware and it also supports all USB protocol versions, from 1.0 to 3.1
libusb is a free and open-source library
download
herehere