Code example for UsbManager

Methods: openDevice

0
        return ByteBuffer.wrap(new byte[length]);
    } 
 
    private synchronized UsbDeviceConnection getConnection() {
        if (conn == null)
            conn = manager.openDevice(device);
 
        return conn;
    } 
 
    @Override 
    public int getVendorId() { 
        return device.getVendorId();
    } 
 
    @Override 
    public int getProductId() { 
        return device.getProductId();
    } 
 
    @Override