No description
Find a file
Sean McBride 8776b8021a
Some checks are pending
linux / build (push) Waiting to run
macOS / build (push) Waiting to run
MSYS2 build / build (push) Waiting to run
MSYS2 clang32 build / build (push) Waiting to run
MSYS2 clang64 build / build (push) Waiting to run
descriptor: Fix clang -Wimplicit-int-conversion warnings
For the 16-bit case especially, the result of the `or` is implicitly
promoted to `int`, then when returned was warning:

warning: implicit conversion loses integer precision: 'int' to 'uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]

Add more casts to shut it up.

Closes #1541
2024-07-30 00:57:06 +02:00
.github CI: Add Linux and MSYS build with logging disabled 2023-12-03 11:43:20 +01:00
.private Replace all http://libusb.info/ with https 2024-01-19 21:53:20 +01:00
android Add API support for LIBUSB_SPEED_SUPER_PLUS_X2 20Gbps USB 3.2 gen 2x2 2024-05-07 19:44:28 +02:00
doc core: Refactor initialization and how the default context is handled 2021-06-02 22:53:59 -06:00
examples examples/ezusb: Fix error checking regression in recent commit 2024-07-29 19:55:01 +02:00
libusb descriptor: Fix clang -Wimplicit-int-conversion warnings 2024-07-30 00:57:06 +02:00
msvc msvc: Add tests/init_context project to MSVC 2023-12-19 01:02:41 +01:00
tests Avoid assignments within if statements 2024-07-28 13:27:05 +02:00
Xcode xcode: Adjust file indentation settings 2024-07-30 00:54:21 +02:00
.clang-tidy clang-tidy: Stop suppressing readability-misleading-indentation warnings 2024-07-28 13:27:06 +02:00
.codespellrc Correct some spelling and add codespell config file 2024-01-20 12:09:35 +01:00
.gitattributes Windows: Remove support for WinCE and Visual Studio older than 2013 2020-01-20 18:02:19 -08:00
.gitignore .gitignore: Ignore test binaries and logs 2023-12-09 10:38:56 +01:00
.travis.yml travis: Turn off Homebrew updates 2020-12-19 13:29:38 -08:00
appveyor.yml msvc: Rework msbuild files 2022-06-26 17:09:14 +02:00
AUTHORS libusb 1.0.27-rc1 2023-12-10 17:33:32 +01:00
autogen.sh autogen: Support being called from external build dir 2021-04-14 16:51:09 +02:00
bootstrap.sh autogen: Support being called from external build dir 2021-04-14 16:51:09 +02:00
ChangeLog libusb 1.0.27 2024-01-31 23:11:14 +01:00
configure.ac configure.ac: Bump libtool library version 2024-01-31 23:07:43 +01:00
COPYING Initial commit 2007-12-02 22:54:59 +00:00
HACKING Add HACKING file with hints on proper commits 2023-11-05 14:36:28 +01:00
INSTALL_WIN.txt msvc: Rework msbuild files 2022-06-26 17:09:14 +02:00
KEYS Add KEYS file for release files verification 2024-07-28 14:04:37 +02:00
libusb-1.0.pc.in Solaris backend 2016-07-24 20:00:00 -06:00
Makefile.am Makefiles: Remove target-specific variables 2020-04-09 12:30:57 -07:00
NEWS Replace all http://libusb.info/ with https 2024-01-19 21:53:20 +01:00
PORTING Misc: Revert all references to libusb/libusb.info 2014-01-08 23:51:01 +00:00
README Replace all http://libusb.info/ with https 2024-01-19 21:53:20 +01:00
README.git Correct some spelling and add codespell config file 2024-01-20 12:09:35 +01:00
README.md Exchange README.md and README 2020-08-23 17:32:06 +02:00
TODO Updated TODO link 2016-07-24 20:02:31 -06:00

libusb

Build Status Build Status Coverity Scan Build Status

libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku, Solaris userspace, and WebAssembly via WebUSB. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).

libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.

libusb homepage: https://libusb.info/

Developers will wish to consult the API documentation: http://api.libusb.info

Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info

(Please use the mailing list rather than mailing developers directly)