Binding to a tiny part of http://libusb.info libusb
Go to file
Matthieu Dubuget e1dd242b88 Mise-en-page 2021-06-05 17:57:22 +02:00
lib Small project updates 2019-03-21 18:56:19 +01:00
README.md Mise-en-page 2021-06-05 17:57:22 +02:00
dune-project Small project updates 2019-03-21 18:56:19 +01:00
libusb.opam Small project updates 2019-03-21 18:56:19 +01:00

README.md

Binding to a tiny part of libusb.

For a more complete binding, have a look at the more complete and more advanced ocaml-usb.

I wrote this alternate binding:

  • in order to experiment more in depth with Ctypes;
  • and because I needed something more portable than ocaml-usb: this one is working on Windows, which was not the case of ocaml-usb when I started this project.

Dependency

Obviously, libusb must installed before compilation. pkg-config is used in order to locate the library during compilation.

On Debian-like systems: apt install libusb-1.0-0-dev

On cygwin, I used mingw64 OCaml installation. This is why I installed mingw64-x86_64-libusb1.0 package.