Package javax.usb

Examples of javax.usb.UsbEndpoint


    if (iDesc.bNumEndpoints() != 2) {
      log.error("Could not find endpoints");
      return;
    }
    for (Object o : mIntf.getUsbEndpoints()) {
      UsbEndpoint e = (UsbEndpoint) o;
      if (e.getDirection() == UsbConst.ENDPOINT_DIRECTION_IN)
        mEpIn = e;
      else
        mEpOut = e;

    }
View Full Code Here


    this.usbInterface = usbInterface;
    List usbEndpoints = usbInterface.getUsbEndpoints();

    for (int i = 0; i < usbEndpoints.size(); i++)
    {
      UsbEndpoint endpoint = (UsbEndpoint) usbEndpoints.get(i);

      if (UsbConst.ENDPOINT_DIRECTION_IN == endpoint.getDirection())
      {
        inEndpoint = endpoint;
      }
      else if (UsbConst.ENDPOINT_DIRECTION_OUT == endpoint.getDirection())
      {
        outEndpoint = endpoint;
      }
    }
View Full Code Here

TOP

Related Classes of javax.usb.UsbEndpoint

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.