diff options
author | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-12-13 10:19:13 +0000 |
---|---|---|
committer | Arturs Artamonovs <arturs.artamonovs@protonmail.com> | 2024-12-13 10:19:13 +0000 |
commit | 4a489b2f306c179e303567908a26e7e79ef5c0dd (patch) | |
tree | e6efd05a045cd972c7231a9f767503314d5683f8 /Radio/HW/AirSpy | |
parent | db8995b5ca0636afe9cb845e127bd317e643f21b (diff) | |
download | PrySDR-4a489b2f306c179e303567908a26e7e79ef5c0dd.tar.gz PrySDR-4a489b2f306c179e303567908a26e7e79ef5c0dd.zip |
AirSpy: receives valid samples
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) } |