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

#include <dsddemodbaudrates.h>

Static Public Member Functions

static unsigned int getRate (unsigned int rate_index)
 
static unsigned int getRateIndex (unsigned int rate)
 
static unsigned int getDefaultRate ()
 
static unsigned int getDefaultRateIndex ()
 
static unsigned int getNbRates ()
 

Static Private Attributes

static unsigned int m_nb_rates = 2
 
static unsigned int m_rates [2] = {2400, 4800}
 
static unsigned int m_defaultRateIndex = 1
 

Detailed Description

Definition at line 22 of file dsddemodbaudrates.h.

Member Function Documentation

◆ getDefaultRate()

static unsigned int DSDDemodBaudRates::getDefaultRate ( )
inlinestatic

Definition at line 27 of file dsddemodbaudrates.h.

References m_defaultRateIndex, and m_rates.

27 { return m_rates[m_defaultRateIndex]; }
static unsigned int m_rates[2]
static unsigned int m_defaultRateIndex

◆ getDefaultRateIndex()

static unsigned int DSDDemodBaudRates::getDefaultRateIndex ( )
inlinestatic

Definition at line 28 of file dsddemodbaudrates.h.

References m_defaultRateIndex.

28 { return m_defaultRateIndex; }
static unsigned int m_defaultRateIndex

◆ getNbRates()

static unsigned int DSDDemodBaudRates::getNbRates ( )
inlinestatic

Definition at line 29 of file dsddemodbaudrates.h.

References m_nb_rates.

29 { return m_nb_rates; }
static unsigned int m_nb_rates

◆ getRate()

unsigned int DSDDemodBaudRates::getRate ( unsigned int  rate_index)
static

Definition at line 25 of file dsddemodbaudrates.cpp.

References m_defaultRateIndex, m_nb_rates, and m_rates.

Referenced by DSDDemodGUI::on_baudRate_currentIndexChanged().

26 {
27  if (rate_index < m_nb_rates)
28  {
29  return m_rates[rate_index];
30  }
31  else
32  {
34  }
35 }
static unsigned int m_nb_rates
static unsigned int m_rates[2]
static unsigned int m_defaultRateIndex
+ Here is the caller graph for this function:

◆ getRateIndex()

unsigned int DSDDemodBaudRates::getRateIndex ( unsigned int  rate)
static

Definition at line 37 of file dsddemodbaudrates.cpp.

References i, m_defaultRateIndex, m_nb_rates, and m_rates.

Referenced by DSDDemodGUI::displaySettings().

38 {
39  for (unsigned int i=0; i < m_nb_rates; i++)
40  {
41  if (rate == m_rates[i])
42  {
43  return i;
44  }
45  }
46 
47  return m_defaultRateIndex;
48 }
static unsigned int m_nb_rates
int32_t i
Definition: decimators.h:244
static unsigned int m_rates[2]
static unsigned int m_defaultRateIndex
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_defaultRateIndex

unsigned int DSDDemodBaudRates::m_defaultRateIndex = 1
staticprivate

Definition at line 33 of file dsddemodbaudrates.h.

Referenced by getDefaultRate(), getDefaultRateIndex(), getRate(), and getRateIndex().

◆ m_nb_rates

unsigned int DSDDemodBaudRates::m_nb_rates = 2
staticprivate

Definition at line 31 of file dsddemodbaudrates.h.

Referenced by getNbRates(), getRate(), and getRateIndex().

◆ m_rates

unsigned int DSDDemodBaudRates::m_rates = {2400, 4800}
staticprivate

Definition at line 32 of file dsddemodbaudrates.h.

Referenced by getDefaultRate(), getRate(), and getRateIndex().


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