Idris2Doc : Bindings.RtlSdr.Gain

Bindings.RtlSdr.Gain

Definitions

getTunerGains : PtrRtlSdrHandle->IO (EitherRTLSDR_ERROR (ListInt))
  Get a list of gains supported by the tuner.

Each gain values is in tenths of a dB, 115 means 11.5 dB.

@h is the device handle

Totality: total
Visibility: export
setTunerGain : PtrRtlSdrHandle->Int->IO (EitherRTLSDR_ERROR ())
  Set the gain for the device.

Manual gain mode must be enabled for this to work.

Valid gain values (in tenths of a dB) for the E4000 tuner:
-10, 15, 40, 65, 90, 115, 140, 165, 190,
215, 240, 290, 340, 420, 430, 450, 470, 490

Valid gain values may be queried with `getTunerGains`.

@h is the device handle
@g is in tenths of a dB, 115 means 11.5 dB.

Totality: total
Visibility: export
setTunerBandwidth : PtrRtlSdrHandle->Int->IO (EitherRTLSDR_ERROR ())
  Set the bandwidth for the device.

@h is the device handle
@bw is the bandwidth in Hz. Zero means automatic BW selection.

Totality: total
Visibility: export
getTunerGain : PtrRtlSdrHandle->IO (EitherRTLSDR_ERRORInt)
  Get actual gain the device is configured to.

Returned gain is in tenths of a dB, 115 means 11.5 dB.

@h is the device handle

Totality: total
Visibility: export
setTunerIFGain : PtrRtlSdrHandle->Int->Int->IO (EitherRTLSDR_ERROR ())
  Set the intermediate frequency gain for the device.

@h is the device handle
@s is the stage intermediate frequency gain stage number (1 to 6 for E4000)
@g is the gain in tenths of a dB, -30 means -3.0 dB.

Totality: total
Visibility: export
setTunerGainMode : PtrRtlSdrHandle->Bool->IO (EitherRTLSDR_ERROR ())
  Set the gain mode (automatic/manual) for the device.

Manual gain mode must be enabled for the gain setter function to work.

@h is the device handle
@t is the manual gain mode, `True` means manual gain mode shall be enabled.

Totality: total
Visibility: export