Interface OutputPipe
- All Superinterfaces:
Pipe
- All Known Subinterfaces:
UsbOutputPipe
A pipe that can be used to write data.
- Since:
- API version 7
-
Method Summary
Modifier and TypeMethodDescriptionintwrite(MemoryBlock data, int timeoutInMs) voidwriteAsync(MemoryBlock data, AsyncTransferCompledCallback callback, int timeoutInMs) Requests to write some data to this pipe in an asynchronous way (the caller is not blocked).
-
Method Details
-
writeAsync
Requests to write some data to this pipe in an asynchronous way (the caller is not blocked). Once some data has been written the callback will be notified on the controller's thread.- Parameters:
data- AMemoryBlockcontaining the data to be written.callback- A callback that is notified on the controller's thread when the write has completed.timeoutInMs- A timeout in milliseconds that will result in an error and termination of the controller if the write does not happen in this time. For infinite timeout use 0.
-
write
-