SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
deviceplutosdr.cpp
Go to the documentation of this file.
1 // Copyright (C) 2017 Edouard Griffiths, F4EXB //
3 // //
4 // This program is free software; you can redistribute it and/or modify //
5 // it under the terms of the GNU General Public License as published by //
6 // the Free Software Foundation as version 3 of the License, or //
7 // (at your option) any later version. //
8 // //
9 // This program is distributed in the hope that it will be useful, //
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
12 // GNU General Public License V3 for more details. //
13 // //
14 // You should have received a copy of the GNU General Public License //
15 // along with this program. If not, see <http://www.gnu.org/licenses/>. //
17 
18 #include "deviceplutosdr.h"
19 
20 const uint64_t DevicePlutoSDR::rxLOLowLimitFreq = 70000000UL; // 70 MHz: take AD9364 specs
21 const uint64_t DevicePlutoSDR::rxLOHighLimitFreq = 6000000000UL; // 6 GHz: take AD9364 specs
22 
23 const uint64_t DevicePlutoSDR::txLOLowLimitFreq = 46875000UL; // 46.875 MHz: take AD9364 specs
24 const uint64_t DevicePlutoSDR::txLOHighLimitFreq = 6000000000UL; // 6 GHz: take AD9364 specs
25 
26 const uint32_t DevicePlutoSDR::srLowLimitFreq = (25000000U/12U)+3U; // 25/12 MS/s without FIR interpolation/decimation (+3 so it is the next multiple of 4)
27 const uint32_t DevicePlutoSDR::srHighLimitFreq = 20000000U; // 20 MS/s: take AD9363 speces
28 
29 const uint32_t DevicePlutoSDR::bbLPRxLowLimitFreq = 200000U; // 200 kHz
30 const uint32_t DevicePlutoSDR::bbLPRxHighLimitFreq = 14000000U; // 14 MHz
31 const uint32_t DevicePlutoSDR::bbLPTxLowLimitFreq = 625000U; // 625 kHz
32 const uint32_t DevicePlutoSDR::bbLPTxHighLimitFreq = 16000000U; // 16 MHz
33 
34 const float DevicePlutoSDR::firBWLowLimitFactor = 0.05f;
35 const float DevicePlutoSDR::firBWHighLimitFactor = 0.9f;
36 
38 {
39 }
40 
42 {
43 }
44 
46 {
47  static DevicePlutoSDR inst;
48  return inst;
49 }
50 
52 {
53  return new DevicePlutoSDRBox(uri);
54 }
55 
57 {
58  const std::string *uri = m_scan.getURIFromSerial(serial);
59 
60  if (uri) {
61  return new DevicePlutoSDRBox(*uri);
62  } else {
63  return 0;
64  }
65 }
66 
67 
68 
69 
static const uint32_t bbLPRxLowLimitFreq
Analog base band Rx low pass filter lower frequency limit (Hz)
static const uint32_t srHighLimitFreq
Device sample rate higher limit in S/s.
static const float firBWHighLimitFactor
Factor by which the FIR working sample rate is multiplied to yield bandwidth higher limit...
static const uint32_t bbLPTxHighLimitFreq
Analog base band Tx high pass filter lower frequency limit (Hz)
static const uint64_t rxLOLowLimitFreq
Rx LO hard coded lower frequency limit (Hz)
static DevicePlutoSDR & instance()
static const uint64_t rxLOHighLimitFreq
Rx LO hard coded lower frequency limit (Hz)
unsigned int uint32_t
Definition: rtptypes_win.h:46
static const uint32_t srLowLimitFreq
Device sample rate lower limit in S/s.
DevicePlutoSDRScan m_scan
class DEVICES_API DevicePlutoSDRBox
DevicePlutoSDRBox * getDeviceFromSerial(const std::string &serial)
static const uint32_t bbLPTxLowLimitFreq
Analog base band Tx low pass filter lower frequency limit (Hz)
static const uint64_t txLOLowLimitFreq
Tx LO hard coded lower frequency limit (Hz)
static const uint32_t bbLPRxHighLimitFreq
Analog base band Rx high pass filter lower frequency limit (Hz)
const std::string * getURIFromSerial(const std::string &serial) const
static const float firBWLowLimitFactor
Factor by which the FIR working sample rate is multiplied to yield bandwidth lower limit...
static const uint64_t txLOHighLimitFreq
Tx LO hard coded lower frequency limit (Hz)
DevicePlutoSDRBox * getDeviceFromURI(const std::string &uri)
unsigned __int64 uint64_t
Definition: rtptypes_win.h:48