Examples of idVendor()


Examples of javax.usb.UsbDeviceDescriptor.idVendor()

    return irp.getActualLength();
  }

  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 {
View Full Code Here

Examples of org.usb4java.DeviceDescriptor.idVendor()

                final DeviceDescriptor descriptor = new DeviceDescriptor();
                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.