示例#1
0
  public int getHandShake() throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetHandShake(getHandle());
    checkResult(ret);

    return ret;
  }
示例#2
0
  public boolean getProcessMessages() throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetProcessMessages(getHandle());
    checkResult(ret);

    return ret != 0;
  }
示例#3
0
  public String getPorta() throws ACBrException {

    ByteBuffer returnBuffer = ByteBuffer.allocate(STR_BUFFER_LEN);
    int ret = ACBrDeviceInterop.INSTANCE.DEV_GetPorta(getHandle(), returnBuffer, STR_BUFFER_LEN);
    checkResult(ret);

    return fromUTF8(returnBuffer, ret);
  }
示例#4
0
  public void setHandShake(int value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetHandShake(getHandle(), value);
    checkResult(ret);
  }
示例#5
0
  public void setPorta(String value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetPorta(getHandle(), toUTF8(value));
    checkResult(ret);
  }
示例#6
0
  public void setProcessMessages(boolean value) throws ACBrException {

    int ret = ACBrDeviceInterop.INSTANCE.DEV_SetProcessMessages(getHandle(), value);
    checkResult(ret);
  }