Examples of bNumInterfaces()


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

Examples of org.usb4java.ConfigDescriptor.bNumInterfaces()

                    return null;
                }
                try
                {
                    this.configValue = config.bConfigurationValue();
                    for (int j = 0; j < config.bNumInterfaces(); j++)
                    {
                        final Interface iface = config.iface()[j];
                        for (int k = 0; k < iface.numAltsetting(); k++)
                        {
                            final InterfaceDescriptor ifaceDescriptor = iface
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.