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.
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
DevicePlutoSDR Class Reference

#include <deviceplutosdr.h>

+ Collaboration diagram for DevicePlutoSDR:

Public Member Functions

void scan ()
 
void getSerials (std::vector< std::string > &serials) const
 
int getNbDevices () const
 
const std::string * getURIAt (unsigned int index) const
 
const std::string * getSerialAt (unsigned int index) const
 
DevicePlutoSDRBoxgetDeviceFromURI (const std::string &uri)
 
DevicePlutoSDRBoxgetDeviceFromSerial (const std::string &serial)
 

Static Public Member Functions

static DevicePlutoSDRinstance ()
 

Static Public Attributes

static const uint64_t rxLOLowLimitFreq = 70000000UL
 Rx LO hard coded lower frequency limit (Hz) More...
 
static const uint64_t rxLOHighLimitFreq = 6000000000UL
 Rx LO hard coded lower frequency limit (Hz) More...
 
static const uint64_t txLOLowLimitFreq = 46875000UL
 Tx LO hard coded lower frequency limit (Hz) More...
 
static const uint64_t txLOHighLimitFreq = 6000000000UL
 Tx LO hard coded lower frequency limit (Hz) More...
 
static const uint32_t srLowLimitFreq = (25000000U/12U)+3U
 Device sample rate lower limit in S/s. More...
 
static const uint32_t srHighLimitFreq = 20000000U
 Device sample rate higher limit in S/s. More...
 
static const uint32_t bbLPRxLowLimitFreq = 200000U
 Analog base band Rx low pass filter lower frequency limit (Hz) More...
 
static const uint32_t bbLPRxHighLimitFreq = 14000000U
 Analog base band Rx high pass filter lower frequency limit (Hz) More...
 
static const uint32_t bbLPTxLowLimitFreq = 625000U
 Analog base band Tx low pass filter lower frequency limit (Hz) More...
 
static const uint32_t bbLPTxHighLimitFreq = 16000000U
 Analog base band Tx high pass filter lower frequency limit (Hz) More...
 
static const float firBWLowLimitFactor = 0.05f
 Factor by which the FIR working sample rate is multiplied to yield bandwidth lower limit. More...
 
static const float firBWHighLimitFactor = 0.9f
 Factor by which the FIR working sample rate is multiplied to yield bandwidth higher limit. More...
 

Protected Member Functions

 DevicePlutoSDR ()
 
 ~DevicePlutoSDR ()
 

Private Attributes

DevicePlutoSDRScan m_scan
 

Detailed Description

Definition at line 28 of file deviceplutosdr.h.

Constructor & Destructor Documentation

◆ DevicePlutoSDR()

DevicePlutoSDR::DevicePlutoSDR ( )
protected

Definition at line 37 of file deviceplutosdr.cpp.

38 {
39 }

◆ ~DevicePlutoSDR()

DevicePlutoSDR::~DevicePlutoSDR ( )
protected

Definition at line 41 of file deviceplutosdr.cpp.

42 {
43 }

Member Function Documentation

◆ getDeviceFromSerial()

DevicePlutoSDRBox * DevicePlutoSDR::getDeviceFromSerial ( const std::string &  serial)

Definition at line 56 of file deviceplutosdr.cpp.

References DevicePlutoSDRBox, DevicePlutoSDRScan::getURIFromSerial(), and m_scan.

Referenced by DevicePlutoSDRParams::open().

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 }
DevicePlutoSDRScan m_scan
class DEVICES_API DevicePlutoSDRBox
const std::string * getURIFromSerial(const std::string &serial) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDeviceFromURI()

DevicePlutoSDRBox * DevicePlutoSDR::getDeviceFromURI ( const std::string &  uri)

Definition at line 51 of file deviceplutosdr.cpp.

References DevicePlutoSDRBox.

52 {
53  return new DevicePlutoSDRBox(uri);
54 }
class DEVICES_API DevicePlutoSDRBox

◆ getNbDevices()

int DevicePlutoSDR::getNbDevices ( ) const
inline

Definition at line 34 of file deviceplutosdr.h.

34 { return m_scan.getNbDevices(); }
DevicePlutoSDRScan m_scan

◆ getSerialAt()

const std::string* DevicePlutoSDR::getSerialAt ( unsigned int  index) const
inline

Definition at line 36 of file deviceplutosdr.h.

36 { return m_scan.getSerialAt(index); }
DevicePlutoSDRScan m_scan
const std::string * getSerialAt(unsigned int index) const

◆ getSerials()

void DevicePlutoSDR::getSerials ( std::vector< std::string > &  serials) const
inline

Definition at line 33 of file deviceplutosdr.h.

Referenced by PlutoSDROutputPlugin::enumSampleSinks(), and PlutoSDRInputPlugin::enumSampleSources().

33 { m_scan.getSerials(serials); }
DevicePlutoSDRScan m_scan
void getSerials(std::vector< std::string > &serials) const
+ Here is the caller graph for this function:

◆ getURIAt()

const std::string* DevicePlutoSDR::getURIAt ( unsigned int  index) const
inline

Definition at line 35 of file deviceplutosdr.h.

35 { return m_scan.getURIAt(index); }
DevicePlutoSDRScan m_scan
const std::string * getURIAt(unsigned int index) const

◆ instance()

DevicePlutoSDR & DevicePlutoSDR::instance ( )
static

Definition at line 45 of file deviceplutosdr.cpp.

Referenced by PlutoSDROutputPlugin::enumSampleSinks(), PlutoSDRInputPlugin::enumSampleSources(), PlutoSDRInputPlugin::initPlugin(), PlutoSDROutputPlugin::initPlugin(), and DevicePlutoSDRParams::open().

46 {
47  static DevicePlutoSDR inst;
48  return inst;
49 }
+ Here is the caller graph for this function:

◆ scan()

void DevicePlutoSDR::scan ( )
inline

Definition at line 32 of file deviceplutosdr.h.

Referenced by PlutoSDROutputPlugin::enumSampleSinks(), and PlutoSDRInputPlugin::enumSampleSources().

32 { m_scan.scan(); }
DevicePlutoSDRScan m_scan
+ Here is the caller graph for this function:

Member Data Documentation

◆ bbLPRxHighLimitFreq

const uint32_t DevicePlutoSDR::bbLPRxHighLimitFreq = 14000000U
static

Analog base band Rx high pass filter lower frequency limit (Hz)

Definition at line 47 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getbbLPRxRange().

◆ bbLPRxLowLimitFreq

const uint32_t DevicePlutoSDR::bbLPRxLowLimitFreq = 200000U
static

Analog base band Rx low pass filter lower frequency limit (Hz)

Definition at line 46 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getbbLPRxRange().

◆ bbLPTxHighLimitFreq

const uint32_t DevicePlutoSDR::bbLPTxHighLimitFreq = 16000000U
static

Analog base band Tx high pass filter lower frequency limit (Hz)

Definition at line 49 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getbbLPTxRange().

◆ bbLPTxLowLimitFreq

const uint32_t DevicePlutoSDR::bbLPTxLowLimitFreq = 625000U
static

Analog base band Tx low pass filter lower frequency limit (Hz)

Definition at line 48 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getbbLPTxRange().

◆ firBWHighLimitFactor

const float DevicePlutoSDR::firBWHighLimitFactor = 0.9f
static

Factor by which the FIR working sample rate is multiplied to yield bandwidth higher limit.

Definition at line 51 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::setFIR(), PlutoSDROutputGUI::setFIRBWLimits(), and PlutoSDRInputGui::setFIRBWLimits().

◆ firBWLowLimitFactor

const float DevicePlutoSDR::firBWLowLimitFactor = 0.05f
static

Factor by which the FIR working sample rate is multiplied to yield bandwidth lower limit.

Definition at line 50 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::setFIR(), PlutoSDROutputGUI::setFIRBWLimits(), and PlutoSDRInputGui::setFIRBWLimits().

◆ m_scan

DevicePlutoSDRScan DevicePlutoSDR::m_scan
private

Definition at line 57 of file deviceplutosdr.h.

Referenced by getDeviceFromSerial().

◆ rxLOHighLimitFreq

const uint64_t DevicePlutoSDR::rxLOHighLimitFreq = 6000000000UL
static

Rx LO hard coded lower frequency limit (Hz)

Definition at line 41 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getRxLORange().

◆ rxLOLowLimitFreq

const uint64_t DevicePlutoSDR::rxLOLowLimitFreq = 70000000UL
static

Rx LO hard coded lower frequency limit (Hz)

Definition at line 40 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getRxLORange().

◆ srHighLimitFreq

const uint32_t DevicePlutoSDR::srHighLimitFreq = 20000000U
static

◆ srLowLimitFreq

const uint32_t DevicePlutoSDR::srLowLimitFreq = (25000000U/12U)+3U
static

◆ txLOHighLimitFreq

const uint64_t DevicePlutoSDR::txLOHighLimitFreq = 6000000000UL
static

Tx LO hard coded lower frequency limit (Hz)

Definition at line 43 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getTxLORange().

◆ txLOLowLimitFreq

const uint64_t DevicePlutoSDR::txLOLowLimitFreq = 46875000UL
static

Tx LO hard coded lower frequency limit (Hz)

Definition at line 42 of file deviceplutosdr.h.

Referenced by DevicePlutoSDRBox::getTxLORange().


The documentation for this class was generated from the following files: