Versions in this module Expand all Collapse all v0 v0.0.1 Dec 1, 2023 Changes in this version + var ErrFailed = errors.New("rtl: operation failed") + var ErrNoDevices = errors.New("rtl: no devices") + var ErrNoMatchingDevice = errors.New("rtl: no matching device") + func DeviceCount() int + func DeviceName(index int) string + func DeviceUSBStrings(index int) (manufacturer, productName, serialNumber string, err error) + func IndexBySerial(serial string) (int, error) + type AsyncCallback func(buf []byte) bool + type Device struct + func Open(index int) (*Device, error) + func (dev *Device) CenterFreq() (uint, error) + func (dev *Device) Close() error + func (dev *Device) GetDirectSampling() (DirectSampling, error) + func (dev *Device) GetOffsetTuning() (bool, error) + func (dev *Device) Read(buf []byte) (int, error) + func (dev *Device) ReadAsync(nBuffers, bufferSize int, cb AsyncCallback) error + func (dev *Device) ReadAsyncUsingSync(nBuffers, bufferSize int, cb AsyncCallback) error + func (dev *Device) ResetBuffer() error + func (dev *Device) SampleRate() (int, error) + func (dev *Device) SetAGCMode(enabled bool) error + func (dev *Device) SetBiasTee(enabled bool) error + func (dev *Device) SetCenterFreq(freqHz uint) error + func (dev *Device) SetDirectSampling(ds DirectSampling) error + func (dev *Device) SetOffsetTuning(enabled bool) error + func (dev *Device) SetSampleRate(rate uint) error + func (dev *Device) SetTunerGain(gain int) error + func (dev *Device) SetTunerGainMode(manual bool) error + func (dev *Device) SetTunerIfGain(stage, gain int) error + func (dev *Device) SetXtalFreq(rtlFreq, tunerFreq uint) error + func (dev *Device) TunerGain() (int, error) + func (dev *Device) TunerGains() ([]int, error) + func (dev *Device) TunerType() TunerType + func (dev *Device) XtalFreq() (uint, uint, error) + type DirectSampling int + const DirectSamplingIADC + const DirectSamplingOff + const DirectSamplingQADC + func (ds DirectSampling) String() string + type LibUSBError int + func (e LibUSBError) Error() string + type TunerType int + const TunerTypeE4000 + const TunerTypeFC0012 + const TunerTypeFC0013 + const TunerTypeFC2580 + const TunerTypeR820T + const TunerTypeR828D + const TunerTypeUnknown + func (tt TunerType) String() string