diff options
Diffstat (limited to 'Radio/HW/AirSpy')
-rw-r--r-- | Radio/HW/AirSpy/AirSpy.swift | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Radio/HW/AirSpy/AirSpy.swift b/Radio/HW/AirSpy/AirSpy.swift index d7916b2..25f5b0b 100644 --- a/Radio/HW/AirSpy/AirSpy.swift +++ b/Radio/HW/AirSpy/AirSpy.swift @@ -54,10 +54,30 @@ class AirSpy { return airspy_set_samplerate(dev, samplerate) } + func rfBias(_ rfbias: UInt8) -> Int32 { + return airspy_set_rf_bias(dev, rfbias) + } + + func VGAGain(_ vgagain: UInt8) -> Int32 { + return airspy_set_vga_gain(dev, vgagain) + } + + func mixerGain(_ gain: UInt8) -> Int32 { + return airspy_set_mixer_gain(dev, gain) + } + + func lnaGain(_ gain: UInt8) -> Int32 { + return airspy_set_lna_gain(dev, gain) + } + func startRx(_ callback: airspy_sample_block_cb_fn) -> Int32 { return airspy_start_rx(dev, callback, nil) } + func stopRx() -> Int32 { + return airspy_stop_rx(dev) + } + func setFrequency(_ freq: UInt32) -> Int32 { return airspy_set_freq(dev, freq) } |