usb-enumerator-0.3: Iteratee enumerators for the usb package

MaintainerBas van Dijk <v.dijk.bas@gmail.com>

System.USB.IO.Synchronous.Enumerator

Description

Iteratee enumerators for endpoints.

Documentation

enumReadBulkSource

Arguments

:: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) 
=> DeviceHandle

A handle for the device to communicate with.

-> EndpointAddress

The address of a valid In and Bulk endpoint to communicate with. Make sure the endpoint belongs to the current alternate setting of a claimed interface which belongs to the device.

-> Size

Chunk size. A good value for this would be the maxPacketSize . endpointMaxPacketSize.

-> Timeout

Timeout (in milliseconds) that this function should wait for each chunk before giving up due to no response being received. For no timeout, use value 0.

-> Enumerator s m α 

enumReadInterruptSource

Arguments

:: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) 
=> DeviceHandle

A handle for the device to communicate with.

-> EndpointAddress

The address of a valid In and Interrupt endpoint to communicate with. Make sure the endpoint belongs to the current alternate setting of a claimed interface which belongs to the device.

-> Size

Chunk size. A good value for this would be the maxPacketSize . endpointMaxPacketSize.

-> Timeout

Timeout (in milliseconds) that this function should wait for each chunk before giving up due to no response being received. For no timeout, use value 0.

-> Enumerator s m α