public boolean setAntennaField(boolean on) { byte[] response; try { response = readerControl.setAntennaField(on); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setAutoPPS(AcrCommunicationSpeed tx, AcrCommunicationSpeed rx) { byte[] response; try { byte[] speed = new byte[2]; if(tx == AcrCommunicationSpeed.RATE_106_Kbps) { speed[0] = RATE_106K; } else if(tx == AcrCommunicationSpeed.RATE_212_Kbps) { speed[0] = RATE_212K; } else if(tx == AcrCommunicationSpeed.RATE_424_Kbps) { speed[0] = RATE_424K; } else throw new IllegalArgumentException("Unexpected rate " + tx); if(rx == AcrCommunicationSpeed.RATE_106_Kbps) { speed[1] = RATE_106K; } else if(rx == AcrCommunicationSpeed.RATE_212_Kbps) { speed[1] = RATE_212K; } else if(rx == AcrCommunicationSpeed.RATE_424_Kbps) { speed[1] = RATE_424K; } else throw new IllegalArgumentException("Unexpected rate " + rx); response = readerControl.setAutoPPS(speed); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setLEDs(Set<AcrLED> first, Set<AcrLED> second) { byte[] response; try { int operation = 0; for(AcrLED type : first) { if(type == AcrLED.GREEN) { operation |= LED_1_GREEN; } else if(type == AcrLED.RED) { operation |= LED_1_RED; } else { throw new IllegalArgumentException("LED " + type + " not supported for LED #1"); } } for(AcrLED type : second) { if(type == AcrLED.BLUE) { operation |= LED_2_BLUE; } else if(type == AcrLED.RED) { operation |= LED_2_RED; } else { throw new IllegalArgumentException("LED " + type + " not supported for LED #2"); } } response = readerControl.setLEDs(operation); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
throw new AcrReaderException(e); return readBoolean(response);
public boolean setDefaultLEDAndBuzzerBehaviour(AcrDefaultLEDAndBuzzerBehaviour ... types) { byte[] response; try { int operation = serializeBehaviour(types); response = readerControl.setDefaultLEDAndBuzzerBehaviour(operation); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
public boolean setAutomaticPICCPolling(AcrAutomaticPICCPolling ... types) { byte[] response; try { response = readerControl.setAutomaticPICCPolling(AcrAutomaticPICCPolling.serialize(types)); } catch (RemoteException e) { throw new AcrReaderException(e); } return readBoolean(response); }
return readBoolean(response);
return readBoolean(response);