Package javax.usb

Examples of javax.usb.UsbInterface.claim()


      UsbConfiguration usbConfiguration = this.device.getUsbConfiguration((byte) 1);
      UsbInterface usbInterface = usbConfiguration.getUsbInterface((byte) 0);
     
      try {
        usbInterface.claim(new UsbInterfacePolicy() {
         
          public boolean forceClaim(UsbInterface arg0) {
            return true;
          }
        });
View Full Code Here


    logger.debug("Got device; Manufacturer is " + cm19a.getManufacturerString());
    logger.debug("Got interface; Active is " + usbInterface.isActive() + " Claimed is " + usbInterface.isClaimed());

    try
    {
      usbInterface.claim();
      logger.debug("Interface has been claimed");
    }
    catch (UsbException ue)
    {
      throw new CM19AException("Couldn't claim interface. " + "Message is " + ue.getMessage());
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.