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
SDRPlayBandwidths Class Reference

#include <sdrplayinput.h>

Static Public Member Functions

static unsigned int getBandwidth (unsigned int bandwidth_index)
 
static unsigned int getBandwidthIndex (unsigned int bandwidth)
 
static unsigned int getNbBandwidths ()
 

Static Private Attributes

static const unsigned int m_nb_bw = 8
 
static unsigned int m_bw [m_nb_bw]
 

Detailed Description

Definition at line 222 of file sdrplayinput.h.

Member Function Documentation

◆ getBandwidth()

unsigned int SDRPlayBandwidths::getBandwidth ( unsigned int  bandwidth_index)
static

Definition at line 1040 of file sdrplayinput.cpp.

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

1041 {
1042  if (bandwidth_index < m_nb_bw)
1043  {
1044  return m_bw[bandwidth_index];
1045  }
1046  else
1047  {
1048  return m_bw[0];
1049  }
1050 }
static const unsigned int m_nb_bw
Definition: sdrplayinput.h:228
static unsigned int m_bw[m_nb_bw]
Definition: sdrplayinput.h:229
+ Here is the caller graph for this function:

◆ getBandwidthIndex()

unsigned int SDRPlayBandwidths::getBandwidthIndex ( unsigned int  bandwidth)
static

Definition at line 1052 of file sdrplayinput.cpp.

References i.

1053 {
1054  for (unsigned int i=0; i < m_nb_bw; i++)
1055  {
1056  if (bandwidth == m_bw[i])
1057  {
1058  return i;
1059  }
1060  }
1061 
1062  return 0;
1063 }
static const unsigned int m_nb_bw
Definition: sdrplayinput.h:228
static unsigned int m_bw[m_nb_bw]
Definition: sdrplayinput.h:229
int32_t i
Definition: decimators.h:244

◆ getNbBandwidths()

unsigned int SDRPlayBandwidths::getNbBandwidths ( )
static

Definition at line 1065 of file sdrplayinput.cpp.

References SDRPlayIF::m_if, and m_nb_bw.

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

1066 {
1068 }
static const unsigned int m_nb_bw
Definition: sdrplayinput.h:228
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bw

unsigned int SDRPlayBandwidths::m_bw
staticprivate
Initial value:
= {
200000,
300000,
600000,
1536000,
5000000,
6000000,
7000000,
8000000,
}

Definition at line 229 of file sdrplayinput.h.

Referenced by SDRPlaySampleRates::getNbRates().

◆ m_nb_bw

const unsigned int SDRPlayBandwidths::m_nb_bw = 8
staticprivate

Definition at line 228 of file sdrplayinput.h.

Referenced by getNbBandwidths().


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