Examples of bNumEndpoints()


Examples of javax.usb.UsbInterfaceDescriptor.bNumEndpoints()

      return;
    }
    mIntf = this.mUsbConfiguration.getUsbInterface((byte) 0);
    // device should have two endpoints
    UsbInterfaceDescriptor iDesc = mIntf.getUsbInterfaceDescriptor();
    if (iDesc.bNumEndpoints() != 2) {
      log.error("Could not find endpoints");
      return;
    }
    for (Object o : mIntf.getUsbEndpoints()) {
      UsbEndpoint e = (UsbEndpoint) o;
View Full Code Here

Examples of org.usb4java.InterfaceDescriptor.bNumEndpoints()

                        final Interface iface = config.iface()[j];
                        for (int k = 0; k < iface.numAltsetting(); k++)
                        {
                            final InterfaceDescriptor ifaceDescriptor = iface
                                .altsetting()[k];
                            if (ifaceDescriptor.bNumEndpoints() > 1)
                            {
                                this.endpoint = ifaceDescriptor.endpoint()[0]
                                    .bEndpointAddress();
                                return LibUsb.refDevice(device);
                            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.