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

#include <sdrplayinput.h>

Static Public Member Functions

static unsigned int getIF (unsigned int if_index)
 
static unsigned int getIFIndex (unsigned int iff)
 
static unsigned int getNbIFs ()
 

Static Private Attributes

static const unsigned int m_nb_if = 4
 
static unsigned int m_if [m_nb_if]
 

Detailed Description

Definition at line 232 of file sdrplayinput.h.

Member Function Documentation

◆ getIF()

unsigned int SDRPlayIF::getIF ( unsigned int  if_index)
static

Definition at line 1079 of file sdrplayinput.cpp.

Referenced by SDRPlayInput::applySettings(), SDRPlayGui::SDRPlayGui(), and SDRPlayInput::webapiFormatDeviceReport().

1080 {
1081  if (if_index < m_nb_if)
1082  {
1083  return m_if[if_index];
1084  }
1085  else
1086  {
1087  return m_if[0];
1088  }
1089 }
static unsigned int m_if[m_nb_if]
Definition: sdrplayinput.h:239
static const unsigned int m_nb_if
Definition: sdrplayinput.h:238
+ Here is the caller graph for this function:

◆ getIFIndex()

unsigned int SDRPlayIF::getIFIndex ( unsigned int  iff)
static

Definition at line 1091 of file sdrplayinput.cpp.

References i.

1092 {
1093  for (unsigned int i=0; i < m_nb_if; i++)
1094  {
1095  if (iff == m_if[i])
1096  {
1097  return i;
1098  }
1099  }
1100 
1101  return 0;
1102 }
static unsigned int m_if[m_nb_if]
Definition: sdrplayinput.h:239
static const unsigned int m_nb_if
Definition: sdrplayinput.h:238
int32_t i
Definition: decimators.h:244

◆ getNbIFs()

unsigned int SDRPlayIF::getNbIFs ( )
static

Definition at line 1104 of file sdrplayinput.cpp.

References SDRPlayBands::m_bandHigh, SDRPlayBands::m_bandLow, SDRPlayBands::m_bandName, and m_nb_if.

Referenced by SDRPlayGui::SDRPlayGui(), and SDRPlayInput::webapiFormatDeviceReport().

1105 {
1106  return SDRPlayIF::m_nb_if;
1107 }
static const unsigned int m_nb_if
Definition: sdrplayinput.h:238
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_if

unsigned int SDRPlayIF::m_if
staticprivate
Initial value:
= {
0,
450000,
1620000,
2048000,
}

Definition at line 239 of file sdrplayinput.h.

Referenced by SDRPlayBandwidths::getNbBandwidths().

◆ m_nb_if

const unsigned int SDRPlayIF::m_nb_if = 4
staticprivate

Definition at line 238 of file sdrplayinput.h.

Referenced by getNbIFs().


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