| Maintainer | Bas van Dijk <v.dijk.bas@gmail.com> |
|---|
System.USB.IO.Iteratee
Description
Iteratee enumerators for endpoints.
- enumReadBulk :: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) => DeviceHandle -> EndpointAddress -> Size -> Timeout -> Enumerator s m α
- enumReadInterrupt :: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) => DeviceHandle -> EndpointAddress -> Size -> Timeout -> Enumerator s m α
- enumReadIsochronous :: forall s m α. (ReadableChunk s Word8, MonadControlIO m) => DeviceHandle -> EndpointAddress -> [Size] -> Timeout -> Enumerator [s] m α
Documentation
Arguments
| :: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) | |
| => DeviceHandle | A handle for the device to communicate with. |
| -> EndpointAddress | The address of a valid |
| -> Size | Chunk size. A good value for this would be
the |
| -> Timeout | Timeout (in milliseconds) that this function should wait for each chunk before giving up due to no response being received. |
| -> Enumerator s m α |
Iteratee enumerator for reading bulk endpoints.
Arguments
| :: (ReadableChunk s Word8, NullPoint s, MonadControlIO m) | |
| => DeviceHandle | A handle for the device to communicate with. |
| -> EndpointAddress | The address of a valid |
| -> Size | Chunk size. A good value for this would
be the |
| -> Timeout | Timeout (in milliseconds) that this function should wait for each chunk before giving up due to no response being received. |
| -> Enumerator s m α |
Iteratee enumerator for reading interrupt endpoints.
Arguments
| :: forall s m α . (ReadableChunk s Word8, MonadControlIO m) | |
| => DeviceHandle | A handle for the device to communicate with. |
| -> EndpointAddress | The address of a valid |
| -> [Size] | Sizes of isochronous packets. A good
value for these would be the
|
| -> Timeout | Timeout (in milliseconds) that this function should wait for each chunk before giving up due to no response being received. |
| -> Enumerator [s] m α |
Iteratee enumerator for reading isochronous endpoints.
WARNING: You need to enable the threaded runtime (-threaded) for this
function to work correctly. It throws a runtime error otherwise!