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

#include <devicebladerf1values.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 unsigned int m_halfbw []
 
static unsigned int m_nb_halfbw = 16
 

Detailed Description

Definition at line 23 of file devicebladerf1values.h.

Member Function Documentation

◆ getBandwidth()

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

Definition at line 40 of file devicebladerf1values.cpp.

References m_halfbw, and m_nb_halfbw.

41 {
42  if (bandwidth_index < m_nb_halfbw)
43  {
44  return m_halfbw[bandwidth_index] * 2;
45  }
46  else
47  {
48  return m_halfbw[0] * 2;
49  }
50 }
static unsigned int m_halfbw[]
static unsigned int m_nb_halfbw

◆ getBandwidthIndex()

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

Definition at line 52 of file devicebladerf1values.cpp.

References i, m_halfbw, and m_nb_halfbw.

53 {
54  for (unsigned int i=0; i < m_nb_halfbw; i++)
55  {
56  if (bandwidth/2000 == m_halfbw[i])
57  {
58  return i;
59  }
60  }
61 
62  return 0;
63 }
static unsigned int m_halfbw[]
static unsigned int m_nb_halfbw
int32_t i
Definition: decimators.h:244

◆ getNbBandwidths()

unsigned int DeviceBladeRF1Bandwidths::getNbBandwidths ( )
static

Definition at line 65 of file devicebladerf1values.cpp.

References m_nb_halfbw.

66 {
68 }
static unsigned int m_nb_halfbw

Member Data Documentation

◆ m_halfbw

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

Definition at line 29 of file devicebladerf1values.h.

Referenced by getBandwidth(), and getBandwidthIndex().

◆ m_nb_halfbw

unsigned int DeviceBladeRF1Bandwidths::m_nb_halfbw = 16
staticprivate

Definition at line 30 of file devicebladerf1values.h.

Referenced by getBandwidth(), getBandwidthIndex(), and getNbBandwidths().


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