usb-1.3.0.0: Communicate with USB devices

Copyright(c) 2009–2014 Bas van Dijk
LicenseBSD3 (see the file LICENSE)
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Safe HaskellTrustworthy
LanguageHaskell98

System.USB.Exceptions

Description

 

Synopsis

Documentation

data USBException Source

Type of USB exceptions.

Constructors

IOException String

Input/output exception.

InvalidParamException

Invalid parameter.

AccessException

Access denied (insufficient permissions). It may help to run your program with elevated privileges or change the permissions of your device using something like udev.

NoDeviceException

No such device (it may have been disconnected).

NotFoundException

Entity not found.

BusyException

Resource busy.

TimeoutException

Operation timed out.

OverflowException

If the device offered to much data. See Packets and overflows in the libusb documentation.

PipeException

Pipe exception.

InterruptedException

System call interrupted (perhaps due to signal).

NoMemException

Insufficient memory.

NotSupportedException

Operation not supported or unimplemented on this platform. If possible, it's recommended the check if a certain operation is supported by using the hasCapability API.

OtherException

Other exception.

incompleteReadException :: USBException Source

IOException that is thrown when the number of bytes read doesn't equal the requested number.

incompleteWriteException :: USBException Source

IOException that is thrown when the number of bytes written doesn't equal the requested number.