Package javax.usb

Examples of javax.usb.UsbConfigurationDescriptor.bNumInterfaces()


      log.debug("setDevice " + this.mUsbDevice);
    // find interface
    mUsbConfiguration = mUsbDevice.getActiveUsbConfiguration();
    UsbConfigurationDescriptor desc = mUsbConfiguration
        .getUsbConfigurationDescriptor();
    if (desc.bNumInterfaces() != 1) {
      log.error("Could not find interface");
      return;
    }
    mIntf = this.mUsbConfiguration.getUsbInterface((byte) 0);
    // device should have two endpoints
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.