Examples of idProduct()


Examples of javax.usb.UsbDeviceDescriptor.idProduct()

  }

  public static boolean isCrazyRadio(UsbDevice device) {
    UsbDeviceDescriptor desc = device.getUsbDeviceDescriptor();
    return desc.idVendor() == CrazyradioDriver.VENDOR_ID
        && desc.idProduct() == CrazyradioDriver.PRODUCT_ID;
  }

  @SuppressWarnings("unchecked")
  private static final UsbDevice findDevice() throws Exception {
    UsbServices services = UsbHostManager.getUsbServices();
View Full Code Here

Examples of org.usb4java.DeviceDescriptor.idProduct()

                if (LibUsb.getDeviceDescriptor(device, descriptor) != 0)
                {
                    continue;
                }
                this.vendorId = descriptor.idVendor();
                this.productId = descriptor.idProduct();
                final ConfigDescriptor config = new ConfigDescriptor();
                if (LibUsb.getActiveConfigDescriptor(device, config) < 0)
                {
                    return null;
                }
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.