Idris2Doc : Bindings.RtlSdr.Frequency

Bindings.RtlSdr.Frequency

Definitions

setXTALFreq : PtrRtlSdrHandle->Int->Int->IO (EitherRTLSDR_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: export
getXTALFreq : PtrRtlSdrHandle->IO (EitherRTLSDR_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: export
setCenterFreq : PtrRtlSdrHandle->Int->IO (EitherRTLSDR_ERROR ())
  Set actual frequency the device is tuned to.

@h is the device handle
@f is the frequency in Hz

Totality: total
Visibility: export
getCenterFreq : PtrRtlSdrHandle->IO (EitherRTLSDR_ERRORInt)
  Get actual frequency the device is tuned to.

@h is the device handle

Totality: total
Visibility: export
setFreqCorrection : PtrRtlSdrHandle->Int->IO (EitherRTLSDR_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: export
getFreqCorrection : PtrRtlSdrHandle->IOInt
  Get actual frequency correction value of the device.

@h is the device handle

Totality: total
Visibility: export