mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
HackRF - final check-in. Changed all tuners to use the low-level API of the usb4java library to resolve limitation in high-level API that constrains maximum sample rate to ~2.0 MHz. Added console logging to logback.
This commit is contained in:
@@ -31,6 +31,7 @@ public class HackRFTunerConfiguration extends TunerConfiguration
|
||||
private HackRFSampleRate mSampleRate = HackRFSampleRate.RATE2_016MHZ;
|
||||
private HackRFLNAGain mLNAGain = HackRFLNAGain.GAIN_0;
|
||||
private HackRFVGAGain mVGAGain = HackRFVGAGain.GAIN_10;
|
||||
private boolean mAmplifierEnabled = false;
|
||||
private double mFrequencyCorrection = 0.0d;
|
||||
|
||||
/**
|
||||
@@ -52,6 +53,17 @@ public class HackRFTunerConfiguration extends TunerConfiguration
|
||||
return TunerType.HACKRF;
|
||||
}
|
||||
|
||||
@XmlAttribute( name = "amplifier_enabled" )
|
||||
public boolean getAmplifierEnabled()
|
||||
{
|
||||
return mAmplifierEnabled;
|
||||
}
|
||||
|
||||
public void setAmplifierEnabled( boolean enabled )
|
||||
{
|
||||
mAmplifierEnabled = enabled;
|
||||
}
|
||||
|
||||
@XmlAttribute( name = "lna_gain" )
|
||||
public HackRFLNAGain getLNAGain()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user