Beispiel #1
0
// SetOffsetTuning sets the offset tuning mode for zero-IF tuners, which
// avoids problems caused by the DC offset of the ADCs and 1/f noise.
func (dev *Context) SetOffsetTuning(enable bool) (err error) {
	mode := 0 // offset tuning off
	if enable {
		mode = 1 // offset tuning on
	}
	i := int(C.rtlsdr_set_offset_tuning((*C.rtlsdr_dev_t)(dev), C.int(mode)))
	return libError(i)
}
Beispiel #2
0
// 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.
//
// 0 means disabled, 1 enabled
//
// int rtlsdr_set_offset_tuning(rtlsdr_dev_t *dev, int on);
// return 0 on success
func (c *Context) SetOffsetTuning(on int) (err int) {
	return int(C.rtlsdr_set_offset_tuning((*C.rtlsdr_dev_t)(c.dev), C.int(on)))
}