/
usb.cabal
77 lines (75 loc) · 2.95 KB
/
usb.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: usb
version: 0.6.0.3
cabal-version: >=1.6
build-type: Custom
license: BSD3
license-file: LICENSE
copyright: 2009–2010 Bas van Dijk <v.dijk.bas@gmail.com>
author: Bas van Dijk <v.dijk.bas@gmail.com>
maintainer: Bas van Dijk <v.dijk.bas@gmail.com>
stability: experimental
category: System
synopsis: Communicate with USB devices
description: This library allows you to communicate with USB devices from
userspace. It is implemented as a high-level wrapper around
@bindings-libusb@ which is a low-level binding to the C library:
@libusb-1.*@.
.
This documentation assumes knowledge of how to operate USB
devices from a software standpoint (descriptors, configurations,
interfaces, endpoints, control\/bulk\/interrupt\/isochronous
transfers, etc). Full information can be found in the USB 2.0
Specification.
.
For an example how to use this library see the @ls-usb@ package
at:
.
<http://hackage.haskell.org/package/ls-usb>
.
Also see the @usb-safe@ package which wraps this package and
provides some strong safety guarantees for working with USB
devices:
.
<http://hackage.haskell.org/package/usb-safe>
.
Finally have a look at the @usb-enumerator@ package which
provides iteratee enumerators for enumerating bulk and interrupt
endpoints:
.
<http://hackage.haskell.org/package/usb-enumerator>
.
Besides this API documentation the following sources might be
interesting:
.
* The libusb 1.0 documentation at:
<http://libusb.sourceforge.net/api-1.0/>
.
* The USB 2.0 specification at:
<http://www.usb.org/developers/docs/>
.
* The @bindings-libusb@ documentation at:
<http://hackage.haskell.org/package/bindings-libusb>
.
* \"USB in a NutShell\" at:
<http://www.beyondlogic.org/usbnutshell/usb1.htm>
source-repository head
Type: darcs
Location: http://code.haskell.org/~basvandijk/code/usb
Library
GHC-Options: -Wall
build-depends: base >= 4 && < 4.4
, base-unicode-symbols >= 0.1.1 && < 0.3
, bindings-libusb >= 1.3 && < 1.5
, bytestring >= 0.9 && < 0.10
, text >= 0.5 && < 0.10
exposed-modules: System.USB
System.USB.Initialization
System.USB.Enumeration
System.USB.DeviceHandling
System.USB.Descriptors
System.USB.IO.Synchronous
System.USB.IO.StandardDeviceRequests
System.USB.Exceptions
System.USB.Unsafe
other-modules: System.USB.Internal
Utils