Maintainer | Bas van Dijk <v.dijk.bas@gmail.com> |
---|---|
Safe Haskell | Trustworthy |
Iteratee enumerators for endpoints.
- enumReadBulk :: (ReadableChunk s Word8, NullPoint s, MonadBaseControl IO m) => DeviceHandle -> EndpointAddress -> Size -> Timeout -> Enumerator s m α
- enumReadInterrupt :: (ReadableChunk s Word8, NullPoint s, MonadBaseControl IO m) => DeviceHandle -> EndpointAddress -> Size -> Timeout -> Enumerator s m α
- enumReadIsochronous :: forall s m α. (ReadableChunk s Word8, MonadBaseControl IO m) => DeviceHandle -> EndpointAddress -> Vector Size -> Timeout -> Enumerator (Vector s) m α
Documentation
:: (ReadableChunk s Word8, NullPoint s, MonadBaseControl IO 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.
:: (ReadableChunk s Word8, NullPoint s, MonadBaseControl IO 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.
:: forall s m α . (ReadableChunk s Word8, MonadBaseControl IO m) | |
=> DeviceHandle | A handle for the device to communicate with. |
-> EndpointAddress | The address of a valid |
-> Vector 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 (Vector 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!