コード例 #1
0
        public LimeSDRDevice(LimeSDRIO parrent)
        {
            _parrent = parrent;

            PGA_gain.address      = 0x0119;
            PGA_gain.msb          = 4;
            PGA_gain.lsb          = 0;
            PGA_gain.defaultValue = 11;
            PGA_gain.name         = "G_PGA_RBB";
            PGA_gain.tooltip      = "This is the gain of the PGA";

            TIA_gain.address      = 0x0113;
            TIA_gain.msb          = 1;
            TIA_gain.lsb          = 0;
            TIA_gain.defaultValue = 3;
            TIA_gain.name         = "G_TIA_RFE";
            TIA_gain.tooltip      = "Controls the Gain of the TIA";

            LNA_gain.address      = 0x0113;
            LNA_gain.msb          = 9;
            LNA_gain.lsb          = 6;
            LNA_gain.defaultValue = 15;
            LNA_gain.name         = "G_LNA_RFE";
            LNA_gain.tooltip      = "Controls the gain of the LNA";
        }
コード例 #2
0
        public LimeSDRControllerDialog(LimeSDRIO owner)
        {
            InitializeComponent();
            float  dpi       = this.CreateGraphics().DpiX;
            float  ratio     = dpi / 96.0f;
            string font_name = this.Font.Name;
            float  size      = (float)(8.25 / ratio);

            System.Drawing.Font new_font = new System.Drawing.Font(font_name, size);
            this.Font = new_font;
            this.PerformAutoScale();
            this.PerformLayout();
            _owner = owner;
            InitSampleRates();
            GetDeviceList();

            _initialized = true;

            comboRadioModel.Text = Utils.GetStringSetting("LimeSDR model", "");
            gainBar.Value        = Utils.GetIntSetting("LimeSDR Gain", 40);
            gainBar_Scroll(this, EventArgs.Empty);
            gainDB.Text             = gainBar.Value.ToString();
            samplerateComboBox.Text = Utils.GetStringSetting("LimeSDR SampleRate", "768000");
            LPBWcomboBox.Text       = Utils.GetStringSetting("LimeSDR LPBW", "1.5MHz");
            rx0.Checked             = Utils.GetBooleanSetting("LimeSDR RX0");
            rx1.Checked             = Utils.GetBooleanSetting("LimeSDR RX1");
            ant_l.Checked           = Utils.GetBooleanSetting("LimeSDR ANT_L");
            ant_h.Checked           = Utils.GetBooleanSetting("LimeSDR ANT_H");
            ant_w.Checked           = Utils.GetBooleanSetting("LimeSDR ANT_W");
            udSpecOffset.Value      = (decimal)Utils.GetDoubleSetting("LimeSDR SpecOffset", 50);
            udFrequencyDiff.Value   = (decimal)Utils.GetDoubleSetting("LimeSDR Frequency diff.", 0.0);
        }
コード例 #3
0
        public LimeSDRControllerDialog(LimeSDRIO owner)
        {
            InitializeComponent();
            _owner = owner;
            InitSampleRates();

            _initialized = true;
        }