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.h
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 #ifndef DEVICES_PLUTOSDR_DEVICEPLUTOSDR_H_
19 #define DEVICES_PLUTOSDR_DEVICEPLUTOSDR_H_
20 
21 #include <stdint.h>
22 
23 #include "deviceplutosdrscan.h"
24 #include "deviceplutosdrbox.h"
25 
26 #include "export.h"
27 
29 {
30 public:
31  static DevicePlutoSDR& instance();
32  void scan() { m_scan.scan(); }
33  void getSerials(std::vector<std::string>& serials) const { m_scan.getSerials(serials); }
34  int getNbDevices() const { return m_scan.getNbDevices(); }
35  const std::string* getURIAt(unsigned int index) const { return m_scan.getURIAt(index); }
36  const std::string* getSerialAt(unsigned int index) const { return m_scan.getSerialAt(index); }
37  DevicePlutoSDRBox* getDeviceFromURI(const std::string& uri);
38  DevicePlutoSDRBox* getDeviceFromSerial(const std::string& serial);
39 
40  static const uint64_t rxLOLowLimitFreq;
41  static const uint64_t rxLOHighLimitFreq;
42  static const uint64_t txLOLowLimitFreq;
43  static const uint64_t txLOHighLimitFreq;
44  static const uint32_t srLowLimitFreq;
45  static const uint32_t srHighLimitFreq;
50  static const float firBWLowLimitFactor;
51  static const float firBWHighLimitFactor;
52 protected:
54  ~DevicePlutoSDR();
55 
56 private:
58 };
59 
60 #endif /* DEVICES_PLUTOSDR_DEVICEPLUTOSDR_H_ */
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 const uint64_t rxLOHighLimitFreq
Rx LO hard coded lower frequency limit (Hz)
#define DEVICES_API
Definition: export.h:76
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
void getSerials(std::vector< std::string > &serials) const
const std::string * getSerialAt(unsigned int index) const
int getNbDevices() const
const std::string * getURIAt(unsigned int index) const
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)
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)
unsigned __int64 uint64_t
Definition: rtptypes_win.h:48