setXTALFreq : Ptr RtlSdrHandle -> Int -> Int -> IO (Either RTLSDR_ERROR ())
Set crystal oscillator frequencies used for the RTL2832 and the tuner IC.
Usually both ICs use the same clock. Changing the clock may make sense if
you are applying an external clock to the tuner or to compensate the
frequency (and samplerate) error caused by the original (cheap) crystal.
NOTE: Call this function only if you fully understand the implications.
@h is the device handle
@f is the frequency used to clock the RTL2832 in Hz
@tf is the frequency value used to clock the tuner IC in Hz
Totality: total
Visibility: exportgetXTALFreq : Ptr RtlSdrHandle -> IO (Either RTLSDR_ERROR (Int, Int))
Get crystal oscillator frequencies used for the RTL2832 and the tuner IC.
Usually both ICs use the same clock.
This will return a tuple of (rtl_freq, tuner_freq) where,
rtl_freq frequency value used to clock the RTL2832 in Hz
tuner_freq frequency value used to clock the tuner IC in Hz
@h is the device handle
Totality: total
Visibility: exportsetCenterFreq : Ptr RtlSdrHandle -> Int -> IO (Either RTLSDR_ERROR ())
Set actual frequency the device is tuned to.
@h is the device handle
@f is the frequency in Hz
Totality: total
Visibility: exportgetCenterFreq : Ptr RtlSdrHandle -> IO (Either RTLSDR_ERROR Int)
Get actual frequency the device is tuned to.
@h is the device handle
Totality: total
Visibility: exportsetFreqCorrection : Ptr RtlSdrHandle -> Int -> IO (Either RTLSDR_ERROR ())
Set the frequency correction value for the device.
@h is the device handle
@ppm correction value in parts per million (ppm)
Totality: total
Visibility: exportgetFreqCorrection : Ptr RtlSdrHandle -> IO Int
Get actual frequency correction value of the device.
@h is the device handle
Totality: total
Visibility: export