Package javax.usb

Examples of javax.usb.UsbControlIrp


  // #Utility functions

  private int sendControlTransfer(byte requestType, byte request,
      short value, short index, byte[] data) {
    UsbControlIrp irp = mUsbDevice.createUsbControlIrp(requestType,
        request, value, index);
    if (data != null)
      irp.setData(data);
    try {
      mUsbDevice.syncSubmit(irp);
    } catch (Exception e) {
      log.error("Failed to send Usb Control", e);
      return -1;
    }
    return irp.getActualLength();
  }
View Full Code Here

TOP

Related Classes of javax.usb.UsbControlIrp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.