Interface OutputPipe

All Superinterfaces:
Pipe
All Known Subinterfaces:
UsbOutputPipe

public interface OutputPipe extends Pipe
A pipe that can be used to write data.
Since:
API version 7
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    write(MemoryBlock data, int timeoutInMs)
     
    void
    writeAsync(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

      void writeAsync(MemoryBlock data, AsyncTransferCompledCallback callback, int timeoutInMs)
      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 - A MemoryBlock containing 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

      int write(MemoryBlock data, int timeoutInMs)