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

#include <devicebladerf1.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_halfbw = 16
 
static const unsigned int m_halfbw []
 

Detailed Description

Definition at line 34 of file devicebladerf1.h.

Member Function Documentation

◆ getBandwidth()

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

Definition at line 110 of file devicebladerf1.cpp.

Referenced by Bladerf1InputGui::Bladerf1InputGui(), Bladerf1OutputGui::Bladerf1OutputGui(), Bladerf1OutputGui::on_bandwidth_currentIndexChanged(), and Bladerf1InputGui::on_bandwidth_currentIndexChanged().

111 {
112  if (bandwidth_index < m_nb_halfbw)
113  {
114  return m_halfbw[bandwidth_index] * 2;
115  }
116  else
117  {
118  return m_halfbw[0] * 2;
119  }
120 }
static const unsigned int m_nb_halfbw
static const unsigned int m_halfbw[]
+ Here is the caller graph for this function:

◆ getBandwidthIndex()

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

Definition at line 122 of file devicebladerf1.cpp.

References i.

Referenced by Bladerf1InputGui::displaySettings(), and Bladerf1OutputGui::displaySettings().

123 {
124  for (unsigned int i=0; i < m_nb_halfbw; i++)
125  {
126  if (bandwidth/2000 == m_halfbw[i])
127  {
128  return i;
129  }
130  }
131 
132  return 0;
133 }
int32_t i
Definition: decimators.h:244
static const unsigned int m_nb_halfbw
static const unsigned int m_halfbw[]
+ Here is the caller graph for this function:

◆ getNbBandwidths()

unsigned int BladerfBandwidths::getNbBandwidths ( )
static

Definition at line 135 of file devicebladerf1.cpp.

References m_nb_halfbw.

Referenced by Bladerf1InputGui::Bladerf1InputGui(), and Bladerf1OutputGui::Bladerf1OutputGui().

136 {
138 }
static const unsigned int m_nb_halfbw
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_halfbw

const unsigned int BladerfBandwidths::m_halfbw
staticprivate
Initial value:
= {
750,
875,
1250,
1375,
1500,
1920,
2500,
2750,
3000,
3500,
4375,
5000,
6000,
7000,
10000,
14000}

Definition at line 41 of file devicebladerf1.h.

Referenced by DeviceBladeRF1::open_bladerf_from_serial().

◆ m_nb_halfbw

const unsigned int BladerfBandwidths::m_nb_halfbw = 16
staticprivate

Definition at line 40 of file devicebladerf1.h.

Referenced by getNbBandwidths(), and DeviceBladeRF1::open_bladerf_from_serial().


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