Idris2Doc : Bindings.RtlSdr.Sampling

Bindings.RtlSdr.Sampling

Definitions

setSampleRate : PtrRtlSdrHandle->Int->IO (EitherRTLSDR_ERROR ())
  Set the sample rate for the device, also selects the baseband filters
according to the requested sample rate for tuners where this is possible.

@h is the device handle
@r is the sample rate to be set, possible values are:
225001 - 300000 Hz
900001 - 3200000 Hz
sample loss is to be expected for rates > 2400000

Totality: total
Visibility: export
getSampleRate : PtrRtlSdrHandle->IOInt
  Get actual sample rate the device is configured to.

@h is the device handle

Totality: total
Visibility: export
setAGCMode : PtrRtlSdrHandle->Bool->IO (EitherRTLSDR_ERROR ())
  Enable or disable the internal digital AGC of the RTL2832.

@h is the device handle
@t is the toggle of digital AGC mode, True means enabled, False means disabled

Totality: total
Visibility: export
dataSamplingType : Type
Totality: total
Visibility: public export
Constructors:
SAMPLING_DISABLED : SamplingType
SAMPLING_I_ADC_ENABLED : SamplingType
SAMPLING_Q_ADC_ENABLED : SamplingType
SAMPLING_IQ_ADC_ENABLED : SamplingType

Hint: 
ShowSamplingType
setDirectSampling : PtrRtlSdrHandle->SamplingType->IO (EitherRTLSDR_ERROR ())
  Enable or disable the direct sampling mode. When enabled, the IF mode
of the RTL2832 is activated, and `setCenterFreq` will control
the IF-frequency of the DDC, which can be used to tune from 0 to 28.8 MHz
(xtal frequency of the RTL2832).

@h is the device handle
@t is the mode of `SampleType`

Totality: total
Visibility: export
getDirectSampling : PtrRtlSdrHandle->IO (EitherRTLSDR_ERROR (MaybeSamplingType))
  Get state of the direct sampling mode

@h is the device handle

Totality: total
Visibility: export