offsetTuning property

bool get offsetTuning

Get enabled state of the offset tuning.

Implementation

bool get offsetTuning {
  RtlSdrException.checkOpen(this);
  final result = bindings.getOffsetTuning(handle);
  RtlSdrException.checkError(result, 'Failed to get offset tuning');
  return result == 1;
}
set offsetTuning (bool enable)

Enable or disable offset tuning for zero-IF tuners, which allows to avoid problems caused by the DC offset of the ADCs and 1/f noise.

Implementation

set offsetTuning(bool enable) {
  RtlSdrException.checkOpen(this);
  final result = bindings.setOffsetTuning(handle, enable ? 1 : 0);
  RtlSdrException.checkError(
      result, 'Failed to ${enable ? 'enable' : 'disable'} offset tuning');
}