mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
PlutoSDR input: use constants for frequency limits
This commit is contained in:
parent
868f96ea96
commit
b411ba5420
@ -16,6 +16,17 @@
|
||||
|
||||
#include "deviceplutosdr.h"
|
||||
|
||||
const uint64_t DevicePlutoSDR::loLowLimitFreq = 70000000UL; // 70 MHz: take AD9364 specs
|
||||
const uint64_t DevicePlutoSDR::loHighLimitFreq = 6000000000UL; // 6 GHz: take AD9364 specs
|
||||
|
||||
const uint32_t DevicePlutoSDR::srLowLimitFreq = 200000; // 200 kS/s
|
||||
const uint32_t DevicePlutoSDR::srHighLimitFreq = 2000000; // 20 MS/s: take AD9363 speces
|
||||
|
||||
const uint32_t DevicePlutoSDR::bbLPRxLowLimitFreq = 200000; // 200 kHz
|
||||
const uint32_t DevicePlutoSDR::bbLPRxHighLimitFreq = 14000000; // 14 MHz
|
||||
const uint32_t DevicePlutoSDR::bbLPTxLowLimitFreq = 625000; // 625 kHz
|
||||
const uint32_t DevicePlutoSDR::bbLPTxHighLimitFreq = 16000000; // 16 MHz
|
||||
|
||||
DevicePlutoSDR::DevicePlutoSDR()
|
||||
{
|
||||
}
|
||||
|
@ -17,6 +17,8 @@
|
||||
#ifndef DEVICES_PLUTOSDR_DEVICEPLUTOSDR_H_
|
||||
#define DEVICES_PLUTOSDR_DEVICEPLUTOSDR_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "deviceplutosdrscan.h"
|
||||
#include "deviceplutosdrbox.h"
|
||||
|
||||
@ -32,6 +34,15 @@ public:
|
||||
DevicePlutoSDRBox* getDeviceFromURI(const std::string& uri);
|
||||
DevicePlutoSDRBox* getDeviceFromSerial(const std::string& serial);
|
||||
|
||||
static const uint64_t loLowLimitFreq; //!< LO lower frequency limit (Hz)
|
||||
static const uint64_t loHighLimitFreq; //!< LO lower frequency limit (Hz)
|
||||
static const uint32_t srLowLimitFreq; //!< Device sample rate lower limit in S/s
|
||||
static const uint32_t srHighLimitFreq; //!< Device sample rate higher limit in S/s
|
||||
static const uint32_t bbLPRxLowLimitFreq; //!< Analog base band Rx low pass filter lower frequency limit (Hz)
|
||||
static const uint32_t bbLPRxHighLimitFreq; //!< Analog base band Rx high pass filter lower frequency limit (Hz)
|
||||
static const uint32_t bbLPTxLowLimitFreq; //!< Analog base band Tx low pass filter lower frequency limit (Hz)
|
||||
static const uint32_t bbLPTxHighLimitFreq; //!< Analog base band Tx high pass filter lower frequency limit (Hz)
|
||||
|
||||
protected:
|
||||
DevicePlutoSDR();
|
||||
~DevicePlutoSDR();
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "device/devicesourceapi.h"
|
||||
#include "plutosdr/deviceplutosdr.h"
|
||||
#include "plutosdrinput.h"
|
||||
#include "ui_plutosdrinputgui.h"
|
||||
#include "plutosdrinputgui.h"
|
||||
@ -43,16 +44,16 @@ PlutoSDRInputGui::PlutoSDRInputGui(DeviceSourceAPI *deviceAPI, QWidget* parent)
|
||||
|
||||
ui->setupUi(this);
|
||||
ui->centerFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->centerFrequency->setValueRange(7, 325000U, 3800000U);
|
||||
ui->centerFrequency->setValueRange(7, DevicePlutoSDR::loLowLimitFreq/1000, DevicePlutoSDR::loHighLimitFreq/1000);
|
||||
|
||||
ui->sampleRate->setColorMapper(ColorMapper(ColorMapper::GrayGreenYellow));
|
||||
ui->sampleRate->setValueRange(8, (uint32_t) minF, (uint32_t) maxF);
|
||||
ui->sampleRate->setValueRange(8, DevicePlutoSDR::srLowLimitFreq, DevicePlutoSDR::srHighLimitFreq);
|
||||
|
||||
ui->lpf->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
|
||||
ui->lpf->setValueRange(6, (minF/1000)+1, maxF/1000);
|
||||
ui->lpf->setValueRange(5, DevicePlutoSDR::bbLPRxLowLimitFreq/1000, DevicePlutoSDR::bbLPRxHighLimitFreq/1000);
|
||||
|
||||
ui->lpFIR->setColorMapper(ColorMapper(ColorMapper::GrayYellow));
|
||||
ui->lpFIR->setValueRange(5, 1U, 56000U);
|
||||
ui->lpFIR->setValueRange(5, 1U, 56000U); // will be dynamically recalculated
|
||||
|
||||
connect(&m_updateTimer, SIGNAL(timeout()), this, SLOT(updateHardware()));
|
||||
connect(&m_statusTimer, SIGNAL(timeout()), this, SLOT(updateStatus()));
|
||||
|
Loading…
Reference in New Issue
Block a user