usb-0.3.1: Communicate with USB devices

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

System.USB.IO.Synchronous.Enumerator

Description

Untested experimental enumerators for endpoints.

Documentation

enumReadBulkSource

Arguments

:: (ReadableChunk s el, MonadCatchIO 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.

-> 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.

-> Size

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

-> EnumeratorGM s el m α 

enumReadInterruptSource

Arguments

:: (ReadableChunk s el, MonadCatchIO 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.

-> 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.

-> Size

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

-> EnumeratorGM s el m α