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

#include <sdrplayinput.h>

Static Public Member Functions

static QString getBandName (unsigned int band_index)
 
static unsigned int getBandLow (unsigned int band_index)
 
static unsigned int getBandHigh (unsigned int band_index)
 
static unsigned int getNbBands ()
 

Static Private Attributes

static const unsigned int m_nb_bands = 8
 
static unsigned int m_bandLow [m_nb_bands]
 
static unsigned int m_bandHigh [m_nb_bands]
 
static const char * m_bandName [m_nb_bands]
 

Detailed Description

Definition at line 242 of file sdrplayinput.h.

Member Function Documentation

◆ getBandHigh()

unsigned int SDRPlayBands::getBandHigh ( unsigned int  band_index)
static

Definition at line 1170 of file sdrplayinput.cpp.

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

1171 {
1172  if (band_index < m_nb_bands)
1173  {
1174  return m_bandHigh[band_index];
1175  }
1176  else
1177  {
1178  return m_bandHigh[0];
1179  }
1180 }
static unsigned int m_bandHigh[m_nb_bands]
Definition: sdrplayinput.h:251
static const unsigned int m_nb_bands
Definition: sdrplayinput.h:249
+ Here is the caller graph for this function:

◆ getBandLow()

unsigned int SDRPlayBands::getBandLow ( unsigned int  band_index)
static

Definition at line 1158 of file sdrplayinput.cpp.

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

1159 {
1160  if (band_index < m_nb_bands)
1161  {
1162  return m_bandLow[band_index];
1163  }
1164  else
1165  {
1166  return m_bandLow[0];
1167  }
1168 }
static const unsigned int m_nb_bands
Definition: sdrplayinput.h:249
static unsigned int m_bandLow[m_nb_bands]
Definition: sdrplayinput.h:250
+ Here is the caller graph for this function:

◆ getBandName()

QString SDRPlayBands::getBandName ( unsigned int  band_index)
static

Definition at line 1146 of file sdrplayinput.cpp.

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

1147 {
1148  if (band_index < m_nb_bands)
1149  {
1150  return QString(m_bandName[band_index]);
1151  }
1152  else
1153  {
1154  return QString(m_bandName[0]);
1155  }
1156 }
static const char * m_bandName[m_nb_bands]
Definition: sdrplayinput.h:252
static const unsigned int m_nb_bands
Definition: sdrplayinput.h:249
+ Here is the caller graph for this function:

◆ getNbBands()

unsigned int SDRPlayBands::getNbBands ( )
static

Definition at line 1183 of file sdrplayinput.cpp.

References m_nb_bands.

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

1184 {
1185  return SDRPlayBands::m_nb_bands;
1186 }
static const unsigned int m_nb_bands
Definition: sdrplayinput.h:249
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bandHigh

unsigned int SDRPlayBands::m_bandHigh
staticprivate
Initial value:
= {
12000,
30000,
50000,
120000,
250000,
380000,
1000000,
2000000,
}

Lower frequency bound in kHz exclusive

Definition at line 251 of file sdrplayinput.h.

Referenced by SDRPlayIF::getNbIFs().

◆ m_bandLow

unsigned int SDRPlayBands::m_bandLow
staticprivate
Initial value:
= {
10,
12000,
30000,
50000,
120000,
250000,
380000,
1000000,
}

Lower frequency bound in kHz inclusive

Definition at line 250 of file sdrplayinput.h.

Referenced by SDRPlayIF::getNbIFs().

◆ m_bandName

const char * SDRPlayBands::m_bandName
staticprivate
Initial value:
= {
"10k-12M",
"12-30M",
"30-50M",
"50-120M",
"120-250M",
"250-380M",
"380M-1G",
"1-2G",
}

Definition at line 252 of file sdrplayinput.h.

Referenced by SDRPlayIF::getNbIFs().

◆ m_nb_bands

const unsigned int SDRPlayBands::m_nb_bands = 8
staticprivate

Definition at line 249 of file sdrplayinput.h.

Referenced by getNbBands().


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