From 4a489b2f306c179e303567908a26e7e79ef5c0dd Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Fri, 13 Dec 2024 10:19:13 +0000 Subject: AirSpy: receives valid samples --- Radio/HW/AirSpy/AirSpy.swift | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Radio/HW/AirSpy') 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) } -- cgit v1.2.3