public void close() throws IOException { if (mConnection == null) { return; } mConnection.releaseInterface(mDataInterface); mConnection.releaseInterface(mControlInterface); mConnection.close(); connected = false; mConnection = null; }
public static void Shutdown() { usb_con.close(); }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } mConnection.close(); mConnection = null; }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } // TODO: nothing sended on close, maybe needed? try { mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } mConnection.close(); mConnection = null; }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } mConnection.close(); mConnection = null; }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } mConnection.close(); mConnection = null; }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } // TODO: nothing sended on close, maybe needed? try { mConnection.close(); } finally { mConnection = null; } }
public void disconnect() { onDisconnect(); usbConnection.close(); usbConnection = null; usbDevice = null; context.unregisterReceiver(disconnectReceiver); }
@Override public void close() { usbDeviceConnection.close(); usbDeviceConnection = null; super.close(); }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { setConfigSingle(SILABSER_IFC_ENABLE_REQUEST_CODE, UART_DISABLE); mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { setConfigSingle(SILABSER_IFC_ENABLE_REQUEST_CODE, UART_DISABLE); mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { setConfigSingle(SILABSER_IFC_ENABLE_REQUEST_CODE, UART_DISABLE); mConnection.close(); } finally { mConnection = null; } }
@Override public void close() throws IOException { if (mConnection == null) { throw new IOException("Already closed"); } try { setConfigSingle(SILABSER_IFC_ENABLE_REQUEST_CODE, UART_DISABLE); mConnection.close(); } finally { mConnection = null; } }
@Override public void syncClose() { setControlCommand(CDC_SET_CONTROL_LINE_STATE, CDC_CONTROL_LINE_OFF, null); connection.releaseInterface(mInterface); connection.close(); isOpen = false; }
@Override public void close() { setControlCommand(CDC_SET_CONTROL_LINE_STATE, CDC_CONTROL_LINE_OFF, null); killWorkingThread(); killWriteThread(); connection.releaseInterface(mInterface); connection.close(); isOpen = false; }