bindings-libusb

Low level bindings to libusb-1.*: http://libusb.sourceforge.net/api-1.0/ This package uses bindings-DSL and conforms to its naming convention. For a higher-level and more Haskell friendly binding (which uses this package) see the usb package: http://hackage.haskell.org/package/usb


Keywords
ffi, library, Propose Tags, http://libusb.sourceforge.net/api-1.0/, http://hackage.haskell.org/package/usb, Skip to Readme, Index, Bindings.Libusb, Bindings.Libusb.Asynchronous, Bindings.Libusb.Descriptors, Bindings.Libusb.DeviceHotplugEventNotification, Bindings.Libusb.HandlingAndEnumeration, Bindings.Libusb.InitializationDeinitialization, Bindings.Libusb.Miscellaneous, Bindings.Libusb.PollingAndTiming, Bindings.Libusb.Synchronous, bindings-libusb-1.4.5.0.tar.gz, browse, Package description, Package maintainers, BasVanDijk, MauricioAntunes, edit package information , libusb-1.*, bindings-DSL, usb, Download libusb for MS Windows, haskell
License
BSD-3-Clause
Install
cabal install bindings-libusb-1.1

Documentation

Low level bindings to libusb-1.*

This package uses bindings-DSL and conforms to its naming convention.

For a higher-level and more Haskell friendly binding (which uses this package) see the usb package.

Installing

Make sure the libusb C library is installed:

  • Ubuntu Linux: sudo apt-get install libusb-1.0-0-dev

  • Gentoo Linux: sudo emerge libusb

  • MS Windows: Download libusb for MS Windows and extract it somewhere e.g. C:\Program Files\libusb\libusb1.

    Important build-time files: libusb-1.0\include\libusb.h and MinGW32\dll\libusb-1.0.dll.a

    Important run-time files: MinGW32\dll\libusb-1.0.dll

    Make sure to use the following cabal options:

      --extra-include-dirs="C:\Program Files\libusb\libusb1\include\libusb-1.0"
    
      --extra-lib-dirs="C:\Program Files\libusb\libusb1\MinGW32\dll"