The aim of this project is to deliver a dynamic library which enables USB-HID communication between PC Host and a target MCU over SPI, I2C or GPIO using a USB-connected bridge device. Two types of bridge devices are currently supported: LPCLink2 and MCULink. The library is supported on Windows/Linux/MacOS platforms.
The project uses the HID_API open source library code and partially also its new libusb/hidapi version to access the USB HID interface on all supported OS platforms.
The library binaries are available in the repository. Default output path is bin/[platform]:
linux_x86_64
... ubuntu 20.04 x86_64 64bit versionlinux_i686
... ubuntu 16.04 386 32bit versionlinux_armv7l
... debian arm 32bit version, tested with imx6ulevklinux_aarch64
... debian arm 64bit version, tested with imx8mqevkosx_x86_64
... macOS 11.3 64bit versionosx_arm64
... macOS ARM 64bit version (M1)Win32
... Windows 32bit version (VS2015, build tools v14.0)x64
... Windows 64bit version (VS2015, build tools v14.0)
The bin_debug
folder contains the Debug build outputs.
- Use Microsoft Visual Studio 2012 or later
- Open
vsproj/libusbsio.sln
or import thevcxproj
project - Build configurations exist for both Win32 and x64
- Select static library bulild (ReleaseS, DebugS targets) or DLL library build (Release, Debug)
- The
makefile
is available - Use
make
ormake debug
to build both static.a
and dynamic.dylib
libraries
- The
makefile
is available - Use
make
ormake debug
to build both static.a
and dynamic.so
libraries
Copyright 2014, 2021-2022 NXP