コード例 #1
0
        public HackRFControllerDialog(HackRFIO owner)
        {
            InitializeComponent();

            _owner = owner;
            var devices = DeviceDisplay.GetActiveDevices();

            deviceComboBox.Items.Clear();
            deviceComboBox.Items.AddRange(devices);

            samplerateComboBox.SelectedIndex = Utils.GetIntSetting("HackRFSampleRate", 3);
            tunerAmpCheckBox.Checked         = Utils.GetBooleanSetting("HackRFTunerAmp");
            tunerLNAGainTrackBar.Value       = Utils.GetIntSetting("LNATunerGain", 3);
            tunerVGAGainTrackBar.Value       = Utils.GetIntSetting("VGATunerGain", 12);
            tunerIFFreq.Value = Utils.GetIntSetting("HackRFIFFreq", 0);
            gainLNALabel.Text = (tunerLNAGainTrackBar.Value * LNAGainStep) + " dB";
            gainVGALabel.Text = (tunerVGAGainTrackBar.Value * VGAGainStep) + " dB";
            IFLabel.Text      = (tunerIFFreq.Value + IFFreqOffset) + " MHz";

            //gainLabel.Visible = tunerAmpCheckBox.Enabled && !tunerAmpCheckBox.Checked;
            //tunerGainTrackBar.Enabled = tunerAmpCheckBox.Enabled && !tunerAmpCheckBox.Checked;
            gainLNALabel.Visible     = tunerLNAGainTrackBar.Enabled = true;
            gainVGALabel.Visible     = tunerVGAGainTrackBar.Enabled = true;
            IFLabel.Visible          = tunerIFFreq.Enabled = true;
            tunerAmpCheckBox.Enabled = true;

            _initialized = true;
        }
コード例 #2
0
        public HackRFControllerDialog(HackRFIO owner)
        {
            InitializeComponent();

            _owner = owner;
            var devices = DeviceDisplay.GetActiveDevices();
            deviceComboBox.Items.Clear();
            deviceComboBox.Items.AddRange(devices);

            samplerateComboBox.SelectedIndex = Utils.GetIntSetting("HackRFSampleRate", 3);
            tunerAmpCheckBox.Checked = Utils.GetBooleanSetting("HackRFTunerAmp");
            tunerLNAGainTrackBar.Value = Utils.GetIntSetting("LNATunerGain", 3);
            tunerVGAGainTrackBar.Value = Utils.GetIntSetting("VGATunerGain", 12);
            tunerIFFreq.Value = Utils.GetIntSetting("HackRFIFFreq", 0);
            gainLNALabel.Text = (tunerLNAGainTrackBar.Value * LNAGainStep) + " dB";
            gainVGALabel.Text = (tunerVGAGainTrackBar.Value * VGAGainStep) + " dB";
            IFLabel.Text = (tunerIFFreq.Value + IFFreqOffset) + " MHz";

            //gainLabel.Visible = tunerAmpCheckBox.Enabled && !tunerAmpCheckBox.Checked;
            //tunerGainTrackBar.Enabled = tunerAmpCheckBox.Enabled && !tunerAmpCheckBox.Checked;
            gainLNALabel.Visible = tunerLNAGainTrackBar.Enabled = true;
            gainVGALabel.Visible = tunerVGAGainTrackBar.Enabled = true;
            IFLabel.Visible = tunerIFFreq.Enabled = true;
            tunerAmpCheckBox.Enabled = true;

            _initialized = true;
        }
コード例 #3
0
 public HackRFControllerDialog(HackRFIO owner)
 {
     this.InitializeComponent();
       this._owner = owner;
       DeviceDisplay[] activeDevices = DeviceDisplay.GetActiveDevices();
       this.deviceComboBox.Items.Clear();
       this.deviceComboBox.Items.AddRange((object[]) activeDevices);
       this.frequencyCorrectionNumericUpDown.Value = (Decimal) Utils.GetDoubleSetting("HackRFFrequencyCorrection", 0.0);
       this.samplerateComboBox.Text = Utils.GetStringSetting("HackRFSampleRate", "10 MSPS");
       this.lnaGainTrackBar.Value = Utils.GetIntSetting("HackRFLNAGain", 0);
       this.vgaGainTrackBar.Value = Utils.GetIntSetting("HackRFVGAGain", 0);
       this.externalAmpCb.Checked = Utils.GetBooleanSetting("HackRFExternalAmp");
       this._initialized = true;
 }
コード例 #4
0
        public HackRFControllerDialog(HackRFIO owner)
        {
            InitializeComponent();

            _owner = owner;
            var devices = DeviceDisplay.GetActiveDevices();
            deviceComboBox.Items.Clear();
            deviceComboBox.Items.AddRange(devices);

            frequencyCorrectionNumericUpDown.Value = (decimal)Utils.GetDoubleSetting("HackRFFrequencyCorrection", 0);
            samplerateComboBox.SelectedIndex = Utils.GetIntSetting("HackRFSampleRate", 3);
            lnaGainTrackBar.Value = Utils.GetIntSetting("HackRFLNAGain", 0);
            vgaGainTrackBar.Value = Utils.GetIntSetting("HackRFVGAGain", 0);
            externalAmpCb.Checked = Utils.GetBooleanSetting("HackRFExternalAmp");
                                    
            _initialized = true;
        }
コード例 #5
0
        public HackRFControllerDialog(HackRFIO owner)
        {
            InitializeComponent();

            _owner = owner;
            var devices = DeviceDisplay.GetActiveDevices();

            deviceComboBox.Items.Clear();
            deviceComboBox.Items.AddRange(devices);

            frequencyCorrectionNumericUpDown.Value = (decimal)Utils.GetDoubleSetting("HackRFFrequencyCorrection", 0);
            samplerateComboBox.SelectedIndex       = Utils.GetIntSetting("HackRFSampleRate", 3);
            lnaGainTrackBar.Value = Utils.GetIntSetting("HackRFLNAGain", 0);
            vgaGainTrackBar.Value = Utils.GetIntSetting("HackRFVGAGain", 0);
            externalAmpCb.Checked = Utils.GetBooleanSetting("HackRFExternalAmp");

            _initialized = true;
        }