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 | Private Attributes | List of all members
DevicePlutoSDRParams Class Reference

#include <deviceplutosdrparams.h>

+ Collaboration diagram for DevicePlutoSDRParams:

Public Member Functions

 DevicePlutoSDRParams ()
 
 ~DevicePlutoSDRParams ()
 
bool open (const std::string &serial)
 
void close ()
 
DevicePlutoSDRBoxgetBox ()
 

Private Attributes

DevicePlutoSDRBoxm_box
 

Detailed Description

This structure refers to one physical device shared among parties (logical devices represented by the DeviceAPI with single Rx or Tx stream type). It allows storing information on the common resources in one place and is shared among participants. There is only one copy that is constructed by the first participant and destroyed by the last. A participant knows it is the first or last by checking the lists of buddies (Rx + Tx).

Definition at line 34 of file deviceplutosdrparams.h.

Constructor & Destructor Documentation

◆ DevicePlutoSDRParams()

DevicePlutoSDRParams::DevicePlutoSDRParams ( )

Definition at line 22 of file deviceplutosdrparams.cpp.

22  :
23  m_box(0)
24 {
25 }
DevicePlutoSDRBox * m_box

◆ ~DevicePlutoSDRParams()

DevicePlutoSDRParams::~DevicePlutoSDRParams ( )

Definition at line 27 of file deviceplutosdrparams.cpp.

28 {
29 }

Member Function Documentation

◆ close()

void DevicePlutoSDRParams::close ( )

Definition at line 37 of file deviceplutosdrparams.cpp.

References m_box.

Referenced by PlutoSDROutput::closeDevice(), and PlutoSDRInput::closeDevice().

38 {
39  delete m_box;
40  m_box = 0;
41 }
DevicePlutoSDRBox * m_box
+ Here is the caller graph for this function:

◆ getBox()

DevicePlutoSDRBox* DevicePlutoSDRParams::getBox ( )
inline

◆ open()

bool DevicePlutoSDRParams::open ( const std::string &  serial)

Definition at line 31 of file deviceplutosdrparams.cpp.

References DevicePlutoSDR::getDeviceFromSerial(), DevicePlutoSDR::instance(), and m_box.

Referenced by PlutoSDROutput::openDevice(), and PlutoSDRInput::openDevice().

32 {
34  return m_box != 0;
35 }
DevicePlutoSDRBox * m_box
static DevicePlutoSDR & instance()
DevicePlutoSDRBox * getDeviceFromSerial(const std::string &serial)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_box

DevicePlutoSDRBox* DevicePlutoSDRParams::m_box
private

Definition at line 46 of file deviceplutosdrparams.h.

Referenced by close(), and open().


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