۳      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  Safe-Inferred  Safe-Inferred None bits s e b extract bit s to e (including) from b.  between n b e tests if n is between the given bounds b and e  (including). A generalized  that works on any  type. A generalized  that returns any  type. mapPeekArray f n a applies the monadic function f to each of the n  elements of the array a$ and returns the results in a list. Monadic if...then...else... decodeBCD bitsInDigit bcd" decodes the Binary Coded Decimal bcd to a list of its encoded digits.  bitsInDigit,, which is usually 4, is the number of bits $used to encode a single digit. See:  1http://en.wikipedia.org/wiki/Binary-coded_decimal   Safe-Inferred  Safe-InferredUnsafeType of USB exceptions. Other exception. 1Operation not supported or unimplemented on this  platform. Insufficient memory. 1System call interrupted (perhaps due to signal). Pipe exception. (If the device offered to much data. See   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows in the libusb documentation. Operation timed out. Resource busy. Entity not found. 0No such device (it may have been disconnected). 1Access denied (insufficient permissions). It may 8 help to run your program with elevated privileges or / change the permissions of your device using  something like udev. Invalid parameter. Input/output exception.  A lock is in one of two states: "locked" or "unlocked". Handy type synonym for the libusb transfer functions. (Host-endian) (Host-endian) DHandy type synonym that names the parameters of a control transfer. !Status of a terminated transfer. Not all bytes were transferred  within the maximum allowed " period. !All bytes were transferred  within the maximum allowed " period. "MA timeout in milliseconds. A timeout defines how long a transfer should wait 5 before giving up due to no response being received.  Use  for no timeout. #Number of bytes transferred. $GHandy type synonym for write transfers that must exactly write all the  given bytes. An  is thrown otherwise. %(Handy type synonym for write transfers. A  WriteAction is a function which takes a  to write and a ". The function returns an * action which, when exectued, returns the 9number of bytes that were actually written paired with a  flag which indicates whether the transfer ! or  . &KHandy type synonym for read transfers that must exactly read the specified  number of bytes. An  is thrown otherwise. ''Handy type synonym for read transfers. A  ReadAction is a function which takes a # which defines how many bytes to read and a ". The function returns an  action which, when 3executed, performs the actual read and returns the  that was read paired with a + flag which indicates whether the transfer ! or  . (&Type of indici of string descriptors. .Can be retrieved by all the *StrIx functions. +DThe language ID consists of the primary language identifier and the *sublanguage identififier as described in:  2http://www.usb.org/developers/docs/USB_LANGIDs.pdf 0For a mapping between IDs and languages see the  2http://hackage.haskell.org/package/usb-id-databaseusb-id-database package.  To see which + s are supported by a device see . ,?Number of additional transaction oppurtunities per microframe. -See table 9-13 of the USB 2.0 specification. - 2 additional (3 per microframe) . 1 additional (2 per microframe) /$None (1 transaction per microframe) 43See section 5.12.4.2 of the USB 2.0 specification. 83See section 5.12.4.1 of the USB 2.0 specification. 9Synchronized to the USB s SOF (Start Of Frame) :+Synchronized using feedback or feedforward  data rate information ;Unsynchronized, . although sinks provide data rate feedback. =?Describes what types of transfers are allowed on the endpoint. >=Interrupt transfers are typically non-periodic, small device  " initiated"* communication requiring bounded latency. ?2Bulk transfers can be used for large bursty data. @;Isochronous transfers occur continuously and periodically. A<Control transfers are typically used for command and status  operations. BFThe USB 2.0 specification specifies that the endpoint attributes only & describe the endpoint transfer type. C5The direction of data transfer relative to the host. D,In transfer direction (device -> host) used  for reading. E-Out transfer direction (host -> device) used  for writing. FThe address of an endpoint. HMust be >= 0 and <= 15 J?A structure representing the standard USB endpoint descriptor. MThis descriptor is documented in section 9.6.3 of the USB 2.0 specification. )This structure can be retrieved by using [. L9The address of the endpoint described by the descriptor. MGAttributes which apply to the endpoint when it is configured using the  e. N6Maximum packet size the endpoint is capable of sending/ receiving. OFInterval for polling endpoint for data transfers. Expressed in frames H or microframes depending on the device operating speed (i.e., either 1  millisecond or 125  s units). PFor audio devices only:, the rate at which synchronization feedback  is provided. QFor audio devices only:$ the address of the synch endpoint. RExtra descriptors. If libusb* encounters unknown endpoint descriptors, 9 it will store them here, should you wish to parse them. S@A structure representing the standard USB interface descriptor. MThis descriptor is documented in section 9.6.5 of the USB 2.0 specification. &This structure can be retrieved using i. UNumber of the interface. V>Value used to select the alternate setting for the interface. W%USB-IF class code for the interface. X9USB-IF subclass code for the interface, qualified by the  W value. Y9USB-IF protocol code for the interface, qualified by the  W and X values. Z>Optional index of string descriptor describing the interface. [0Vector of endpoints supported by the interface. \Extra descriptors. If libusb encounters unknown interface F descriptors, it will store them here, should you wish to parse them. ]IAn interface is represented as a vector of alternate interface settings. `.The Remote Wakeup field indicates whether the 1 device is currently enabled to request remote - wakeup. The default mode for devices that & support remote wakeup is disabled. a-The Self Powered field indicates whether the $ device is currently self-powered bKThe USB 2.0 specification specifies that the configuration attributes only  describe the device status. cDA structure representing the standard USB configuration descriptor. MThis descriptor is documented in section 9.6.3 of the USB 2.0 specification. #This structure can be retrieved by . e(Identifier value for the configuration. fBOptional index of string descriptor describing the configuration. gConfiguration characteristics. h@Maximum power consumption of the USB device from the bus in the H configuration when the device is fully operational. Expressed in 2 mA  units (i.e., 50 = 100 mA). i5Vector of interfaces supported by the configuration. jExtra descriptors. If libusb" encounters unknown configuration F descriptors, it will store them here, should you wish to parse them. n=A structure representing the standard USB device descriptor. MThis descriptor is documented in section 9.6.1 of the USB 2.0 specification. #This structure can be retrieved by  deviceDesc. p"USB specification release number. q"USB-IF class code for the device. r6USB-IF subclass code for the device, qualified by the q  value. s6USB-IF protocol code for the device, qualified by the q  and r values. t$Maximum packet size for endpoint 0. uUSB-IF vendor ID. vUSB-IF product ID. wDevice release number. x=Optional index of string descriptor describing manufacturer. y8Optional index of string descriptor describing product. zEOptional index of string descriptor containing device serial number. {#Number of possible configurations. |-Identifier for interface alternate settings. Can be retrieved by V. }Identifier for interfaces. Can be retrieved by U. ~Identifier for configurations. Can be retrieved by  or by e. 5Abstract type representing a handle of a USB device. You can acquire a handle from . $A device handle is used to perform I/+O and other operations. When finished with 0a device handle you should close it by applying  to it.  Retrieve the  from the . @Abstract type representing a USB device detected on the system. *You can only obtain a USB device from the  function. ICertain operations can be performed on a device, but in order to do any I/O you will have to first obtain a  using . NJust because you have a reference to a device does not mean it is necessarily Kusable. The device may have been unplugged, you may not have permission to Joperate such device or another process or driver may be using the device. MTo get additional information about a device you can retrieve its descriptor using . This reference to the  is needed so that it won't ) gets garbage collected. The finalizer  libusb_exit is # run only when all references to Devices are gone. Message verbosity .Informational messages are printed to stdout, 4 warning and error messages are printed to stderr 1Warning and error messages are printed to stderr %Error messages are printed to stderr ,No messages are ever printed by the library @A function to wait for the termination of a submitted transfer. *Abstract type representing a USB session. OThe concept of individual sessions allows your program to use multiple threads Lthat can independently use this library without interfering with eachother. (Sessions are created and initialized by  and are automatically closed !when they are garbage collected. "The only functions that receive a Ctx are  and . )Create and initialize a new USB context. This function may throw s. Note that the internal libusb0 event handling can return errors. These errors ?occur in the thread that is executing the event handling loop.  will print these errors to 1. If you need to handle the errors yourself (for <example log them in an application specific way) please use . Like = but enables you to specify the way errors should be handled  that occur while handling libusb events. ,Checks if the system supports asynchronous I/O.   means asynchronous I/#O is not supported so synchronous I/ O should  be used instead.   wait means that asynchronous I/O is supported. The wait 7 function can be used to wait for submitted transfers. Set message verbosity. The default level is ". This means no messages are ever Oprinted. If you choose to increase the message verbosity level you must ensure )that your application does not close the stdout/stderr file descriptors. *You are advised to set the debug level to  . Libusb is Iconservative with its message logging. Most of the time it will only log Nmessages that explain error conditions and other oddities. This will help you debug your software. LThe LIBUSB_DEBUG environment variable overrules the debug level set by this Ifunction. The message verbosity is fixed to the value in the environment variable if it is defined. If libusbG was compiled without any message logging, this function does nothing: you'll never get any messages. If libusbE was compiled with verbose debug message logging, this function does  nothing: you'(ll always get messages from all levels. BReturns a vector of USB devices currently attached to the system. 4This is your entry point into finding a USB device.  Exceptions:  ! on a memory allocation failure. 5The number of the bus that a device is connected to. 9The address of the device on the bus it is connected to. *Open a device and obtain a device handle.  A handle allows you to perform I/O on the device in question. DThis is a non-blocking function; no requests are sent over the bus. It is advisable to use % because it automatically closes the (device when the computation terminates.  Exceptions:  * if there is a memory allocation failure.   + if the user has insufficient permissions.   & if the device has been disconnected.  Another . Close a device handle. DShould be called on all open handles before your application exits. DThis is a non-blocking function; no requests are sent over the bus. withDeviceHandle dev act opens the  dev and passes (the resulting handle to the computation act$. The handle will be closed on exit from withDeviceHandle0 whether by normal termination or by raising an  exception. ;Determine the value of the currently active configuration. MYou could formulate your own control request to obtain this information, but Pthis function has the advantage that it may be able to retrieve the information "from operating system caches (no I/ O involved). OIf the OS does not cache this information, then this function will block while =a control transfer is submitted to retrieve the information. This function returns ) if the device is in unconfigured state.  Exceptions:   & if the device has been disconnected.  Another . +Set the active configuration for a device. PThe operating system may or may not have already set an active configuration on Pthe device. It is up to your application to ensure the correct configuration is Nselected before you attempt to claim interfaces and perform other operations. KIf you call this function on a device already configured with the selected Mconfiguration, then this function will act as a lightweight device reset: it Pwill issue a SET_CONFIGURATION request using the current configuration, causing Nmost USB-related device state to be reset (altsetting reset to zero, endpoint halts cleared, toggles reset). You cannot change/?reset configuration if your application has claimed interfaces - you should free them with  first. You cannot change/reset Hconfiguration if other applications or drivers have claimed interfaces. A configuration value of ( will put the device in an unconfigured Ostate. The USB specification states that a configuration value of 0 does this, Chowever buggy devices exist which actually have a configuration 0. EYou should always use this function rather than formulating your own LSET_CONFIGURATION control request. This is because the underlying operating /system needs to know when such changes happen. This is a blocking function.  Exceptions:   0 if the requested configuration does not exist.   & if interfaces are currently claimed.   % if the device has been disconnected  Another . -Claim an interface on a given device handle. EYou must claim the interface you wish to use before you can perform I/ O on any of its endpoints. QIt is legal to attempt to claim an already-claimed interface, in which case this .function just returns without doing anything. LClaiming of interfaces is a purely logical operation; it does not cause any Mrequests to be sent over the bus. Interface claiming is used to instruct the Nunderlying operating system that your application wishes to take ownership of the interface. !This is a non-blocking function.  Exceptions:   , if the requested interface does not exist.   & if the interface is already claimed.   & if the device has been disconnected.  Another . -Release an interface previously claimed with . JYou should release all claimed interfaces before closing a device handle. QThis is a blocking function. A SET_INTERFACE control request will be sent to the Bdevice, resetting interface state to the first alternate setting.  Exceptions:   # if the interface was not claimed.   % if the device has been disconnected  Another . withClaimedInterface6 claims the interface on the given device handle then -executes the given computation. On exit from withClaimedInterface, the Pinterface is released whether by normal termination or by raising an exception. 0Activate an alternate setting for an interface. 5The interface must have been previously claimed with . EYou should always use this function rather than formulating your own OSET_INTERFACE control request. This is because the underlying operating system (needs to know when such changes happen. This is a blocking function.  Exceptions:   3 if the interface was not claimed or the requested % alternate setting does not exist.   & if the device has been disconnected.  Another . Clear the halt/!stall condition for an endpoint. QEndpoints with halt status are unable to receive or transmit data until the halt condition is stalled. LYou should cancel all pending transfers before attempting to clear the halt  condition. This is a blocking function.  Exceptions:   ! if the endpoint does not exist.   & if the device has been disconnected.  Another . 3Perform a USB port reset to reinitialize a device. LThe system will attempt to restore the previous configuration and alternate (settings after the reset has completed. LIf the reset fails, the descriptors change, or the previous state cannot be Prestored, the device will appear to be disconnected and reconnected. This means Othat the device handle is no longer valid (you should close it) and rediscover the device. A  ( is raised to indicate that this is the case. EThis is a blocking function which usually incurs a noticeable delay.  Exceptions:   * if re-enumeration is required, or if the ! device has been disconnected.  Another . 8Determine if a kernel driver is active on an interface. QIf a kernel driver is active, you cannot claim the interface, and libusb will be unable to perform I/O.  Exceptions:   & if the device has been disconnected.  Another . *Detach a kernel driver from an interface. IIf successful, you will then be able to claim the interface and perform I/O.  Exceptions:   ! if no kernel driver was active.   " if the interface does not exist.   & if the device has been disconnected.  Another . Re-attach an interface'&s kernel driver, which was previously detached using .  Exceptions:   ! if no kernel driver was active.   " if the interface does not exist.   & if the device has been disconnected.   8 if the driver cannot be attached because the interface & is claimed by a program or driver.  Another . FIf a kernel driver is active on the specified interface the driver is Pdetached and the given action is executed. If the action terminates, whether by Mnormal termination or by raising an exception, the kernel driver is attached Qagain. If a kernel driver is not active on the specified interface the action is just executed.  Exceptions:   & if the device has been disconnected.  Another . JCalculate the maximum packet size which a specific endpoint is capable of 6sending or receiving in the duration of 1 microframe. If acting on an @ or > endpoint, this function will  multiply the 2 by the additional 3. /If acting on another type of endpoint only the 2 is returned. .This function is mainly useful for setting up  isochronous transfers. 2Get the USB device descriptor for a given device. LThis is a non-blocking function; the device descriptor is cached in memory. This function may throw s. GUnmarshal a a 16bit word as a release number. The 16bit word should be  encoded as a   1http://en.wikipedia.org/wiki/Binary-coded_decimalBinary Coded Decimal * using 4 bits for each of the 4 decimals. FUnmarshal an 8bit word to a string descriptor index. 0 denotes that a 6 string descriptor is not available and unmarshals to . 7Get a USB configuration descriptor based on its index. DThis is a non-blocking function which does not involve any requests  being sent to the device.  Exceptions:   & if the configuration does not exist.  Another . JUnmarshal an 8bit word as an endpoint address. This function is primarily * used when unmarshalling USB descriptors. :Marshal an endpoint address so that it can be used by the libusb transfer  functions. AThe size in number of bytes of the header of string descriptors. ECharacters are encoded as UTF16LE so each character takes two bytes. *Retrieve a vector of supported languages. This function may throw s. /putStrDesc devHndl strIx langId maxSize dataPtr retrieves the string descriptor strIx in the language langId from the devHndl and writes at most maxSize* bytes from that string descriptor to the location that dataPtr. points to. So ensure there is at least space for maxSize8 bytes there. Next, the header of the string descriptor !is checked for correctness. If it's incorrect an  is >thrown. Finally, the size reported in the header is returned. ,Retrieve a string descriptor from a device. This function may throw s. ORetrieve a string descriptor from a device using the first supported language. This function may throw s. &A timeout of 0 denotes no timeout so:  noTimeout = 0. Perform a USB control& request that does not transfer data.  Exceptions:   if the transfer timed out.  8 if the control request was not supported by the device   & if the device has been disconnected.  Another . Perform a USB control read.  Exceptions:  8 if the control request was not supported by the device   & if the device has been disconnected.  Another . "A convenience function similar to  which checks if the 7 specified number of bytes to read were actually read.  Throws an  if this is not the case. Perform a USB control write.  Exceptions:  8 if the control request was not supported by the device   & if the device has been disconnected.  Another . "A convenience function similar to  which checks if the given $ bytes were actually fully written.  Throws an  if this is not the case. Perform a USB bulk read.  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . Perform a USB bulk write.  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . Perform a USB  interrupt read.  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . Perform a USB  interrupt write.  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . KAllocate a transfer with the given number of isochronous packets and apply L the function to the resulting pointer. The transfer is automatically freed M when the function terminates (whether normally or by raising an exception). A  may be thrown.  Create a FunPtr8 to the given transfer callback function and pass it to  the continuation function. The FunPtr! is automatically freed when the H continuation terminates (whether normally or by raising an exception). Create a lock in the "unlocked" state.  Acquires the ,. Blocks if another thread has acquired the . acquire behaves as follows:  When the state is "unlocked" acquire changes the state to "locked".  When the state is "locked" acquire blocks until a call to  in Qanother thread wakes the calling thread. Upon awakening it will change the state to "locked". release changes the state to "unlocked" and returns immediately. .The behaviour is undefined when a lock in the "unlocked" state is released! $If there are any threads blocked on  the thread that first called acquire will be woken up. Perform a USB  isochronous read. WARNING:* You need to enable the threaded runtime ( -threaded ) for this Afunction to work correctly. It throws a runtime error otherwise!  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . Perform a USB  isochronous write. WARNING:* You need to enable the threaded runtime ( -threaded ) for this Afunction to work correctly. It throws a runtime error otherwise!  Exceptions:   if the endpoint halted.  & if the device offered more data, see   9http://libusb.sourceforge.net/api-1.0/packetoverflow.htmlPackets and overflows  in the libusb documentation.   & if the device has been disconnected.  Another . MAn isochronous packet descriptor with all fields zero except for the length. handleUSBException action executes action. If action returned an  error code other than 'c\'LIBUSB_SUCCESS', the error is converted to a   and thrown. checkUSBException action executes action. If action returned a 0 negative integer the integer is converted to a  and thrown. If  not, the integer is returned.  Convert a C' libusb_error to a  . If the C' libusb_error is  unknown an  is thrown. Association list mapping s to s.  A general . ) that is thrown when the number of bytes read  doesn't equal the requested number. ) that is thrown when the number of bytes written  doesn't equal the requested number. Devices are shown as: Bus <> Device <>   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~     9Maximum number of characters in the requested string. An  - will be thrown when the requested string is  larger than this number. .Maximum number of characters in the requested  string. An  will be thrown when the 0 requested string is larger than this number. Encoded endpoint address Encoded endpoint address Sizes of isochronous packets  !"#$%  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~        ! "#$%&'()*+,/.-012347658<;:9=A@?>BCEDFGHIJKLMNOPQRS TUVWXYZ[\]^_`abcdefghijklmn opqrstuvwxyz{|}~      !"#$%#Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy #Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy#Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy|}~~}|#Bas van Dijk <v.dijk.bas@gmail.com> TrustworthyZ()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{Znopqrstuvwxyz{mlkcdefghijb^_`a]STUVWXYZ[\JKLMNOPQRFGHICEDB=A@?>8<;:947650123,/.-+*)(#Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy" !"#$%&'"'&%$#"! #Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy  #Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~#Bas van Dijk <v.dijk.bas@gmail.com>Unsafe#Bas van Dijk <v.dijk.bas@gmail.com> Trustworthy See: USB 2.0 Spec. table 9-7 !See: USB 2.0 Spec. section 9.4.9 !See: USB 2.0 Spec. section 9.4.7 +This function is for testing purposes only! You should normally use System.USB.DeviceHandling. because J that function notifies the underlying operating system about the changed  configuration. !See: USB 2.0 Spec. section 9.4.2 +This function is for testing purposes only! You should normally use System.USB.DeviceHandling. because 7 that functon may exploit operating system caches (no I/ O involved). !See: USB 2.0 Spec. section 9.4.1 !See: USB 2.0 Spec. section 9.4.9 !See: USB 2.0 Spec. section 9.4.9 . TODO: What about vendor-specific test modes? !See: USB 2.0 Spec. section 9.4.4 !See: USB 2.0 Spec. section 9.4.5 !See: USB 2.0 Spec. section 9.4.5 !See: USB 2.0 Spec. section 9.4.6 7This request is used to set and then report an endpoint's synchronization frame. OWhen an endpoint supports isochronous transfers, the endpoint may also require Nper-frame transfers to vary in size according to a specific pattern. The host Mand the endpoint must agree on which frame the repeating pattern begins. The Hnumber of the frame in which the pattern began is returned to the host. LIf a high-speed device supports the Synch Frame request, it must internally Nsynchronize itself to the zeroth microframe and have a time notion of classic Oframe. Only the frame number is used to synchronize and reported by the device Lendpoint (i.e., no microframe number). The endpoint must synchronize to the zeroth microframe. NThis value is only used for isochronous data transfers using implicit pattern Osynchronization. If the specified endpoint does not support this request, then .the device will respond with a Request Error. "See: USB 2.0 Spec. section 9.4.11 &'(&'()  !"#$%&'()*+,-./0123456789:;<=>?@@ABCDEFGHIJKLMNOPQRSTUUVWXXYZ[\]^_``abcdefghijjklmnnopqrstuvwxxyz{|}~           !"#$%&'()*+,-./0123456789usb-1.2System.USB.InternalSystem.USB.Exceptions System.USB.IOSystem.USB.DescriptorsSystem.USB.DeviceHandlingSystem.USB.EnumerationSystem.USB.Initialization$System.USB.IO.StandardDeviceRequestsTimevalSystemEventManagerUtilsEventPollSystem.USB.Base System.USB pokeVector USBExceptionOtherExceptionNotSupportedExceptionNoMemExceptionInterruptedException PipeExceptionOverflowExceptionTimeoutException BusyExceptionNotFoundExceptionNoDeviceExceptionAccessExceptionInvalidParamException IOExceptionLockC'TransferTypeC'TransferFuncIndexValueRequest RecipientToOther ToEndpoint ToInterfaceToDevice RequestTypeVendorClassStandard ControlActionStatusTimedOut CompletedTimeoutSizeWriteExactAction WriteActionReadExactAction ReadActionStrIx SubLangId PrimaryLangIdLangIdTransactionOpportunitiesTwoOneZero MaxPacketSize maxPacketSizetransactionOpportunitiesUsageImplicitFeedbackDataSynchronization SynchronousAdaptive AsynchronousNoSynchronization TransferType InterruptBulk IsochronousControlEndpointAttribsTransferDirectionInOutEndpointAddressendpointNumbertransferDirection EndpointDescendpointAddressendpointAttribsendpointMaxPacketSizeendpointIntervalendpointRefreshendpointSynchAddress endpointExtra InterfaceDescinterfaceNumberinterfaceAltSettinginterfaceClassinterfaceSubClassinterfaceProtocolinterfaceStrIxinterfaceEndpointsinterfaceExtra Interface DeviceStatus remoteWakeup selfPowered ConfigAttribs ConfigDesc configValue configStrIx configAttribsconfigMaxPowerconfigInterfaces configExtra ProductIdVendorId ReleaseNumber DeviceDescdeviceUSBSpecReleaseNumber deviceClassdeviceSubClassdeviceProtocoldeviceMaxPacketSize0deviceVendorIddeviceProductIddeviceReleaseNumberdeviceManufacturerStrIxdeviceProductStrIxdeviceSerialNumberStrIxdeviceNumConfigsInterfaceAltSettingInterfaceNumber ConfigValue DeviceHandle getDeviceDevice Verbosity PrintInfo PrintWarnings PrintErrors PrintNothingWaitCtxnewCtxnewCtx'getWaitsetDebug getDevices busNumber deviceAddresswithDevHndlPtr openDevice closeDevicewithDeviceHandle getConfig setConfigclaimInterfacereleaseInterfacewithClaimedInterfacesetInterfaceAltSetting clearHalt resetDevicekernelDriverActivedetachKernelDriverattachKernelDriverwithDetachedKernelDrivermaxIsoPacketSize getDeviceDescunmarshalReleaseNumberunmarshalStrIx getConfigDescunmarshalEndpointAddressmarshalEndpointAddress getLanguages getStrDescgetStrDescFirstLang noTimeoutcontrol readControlreadControlExact writeControlwriteControlExactreadBulk writeBulk readInterruptwriteInterruptallocaTransfer withCallbacknewLockacquirereleasereadIsochronouswriteIsochronousinitIsoPacketDescconvertUSBException ioExceptionincompleteReadExceptionincompleteWriteException FrameNumberTestModeTest_Force_Enable Test_Packet Test_SE0_NAKTest_KTest_JsetHaltclearRemoteWakeupsetRemoteWakeupsetStandardTestModegetInterfaceAltSettinggetDeviceStatusgetEndpointStatussetDeviceAddress synchFrameCTimeval MkCTimeval withTimeval$fStorableCTimevalbaseGHC.Event.ThreadgetSystemEventManagerbitsbetween genToEnumGHC.EnumtoEnumGHC.RealIntegral genFromEnumfromEnum mapPeekArrayifM decodeBCD peekVector allocaPeekunconsGHC.Event.InternalevtWriteevtReadtoEventbytestring-0.10.0.0Data.ByteString.Internal ByteStringghc-prim GHC.TypesIOgetCtxGHC.IO.Handle.FDstderr Data.MaybeNothingJuststrDescHeaderSizecharSize putStrDeschandleUSBExceptioncheckUSBExceptionGHC.Errerrorlibusb_error_to_USBExceptionbindings-libusb-1.4.4.1Bindings.Libusb.MiscellaneousC'libusb_error $fShowDevice getDevHndlPtr getDevFrgnPtr ctxGetWait getCtxFrgnPtr withCtxPtr libusb_initnewCtxNoEventManager withDevicePtrconvertDeviceDescconvertConfigDescunmarshalConfigAttribsgetExtraconvertInterfaceconvertInterfaceDescconvertEndpointDescunmarshalEndpointAttribsunmarshalMaxPacketSizeunmarshalLangId marshalLangIdmarshalRequestTypecontrolSetupSizecontrolEndpointcontrolTransferSyncreadTransferSyncwriteTransferSync transferSyncreadTransferAsyncwriteTransferAsync transferAsyncwithTerminatedTransfer getPacketsgetSizescopyIsoscreateAndTrimNoOffsetincompleteException moduleError thisModuleneedThreadedRTSError$fExceptionUSBException$fShowDeviceHandle$fEqDeviceHandle $fEqDevice$fEqCtx haltFeatureremoteWakeupFeaturetestModeFeature