mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-24 11:12:27 -04:00
BladeRF: removed now useless sample rate presets
This commit is contained in:
parent
7dfa4cdc6b
commit
8df446c5cb
@ -17,64 +17,6 @@
|
|||||||
#include "devicebladerfvalues.h"
|
#include "devicebladerfvalues.h"
|
||||||
|
|
||||||
|
|
||||||
unsigned int DeviceBladeRFSampleRates::m_nb_rates = 23;
|
|
||||||
unsigned int DeviceBladeRFSampleRates::m_rates[] = {
|
|
||||||
1536,
|
|
||||||
1600,
|
|
||||||
2000,
|
|
||||||
2304,
|
|
||||||
2400,
|
|
||||||
3000,
|
|
||||||
3024,
|
|
||||||
3072,
|
|
||||||
3200,
|
|
||||||
4608,
|
|
||||||
4800,
|
|
||||||
6000,
|
|
||||||
6048,
|
|
||||||
6144,
|
|
||||||
7680,
|
|
||||||
9216,
|
|
||||||
9600,
|
|
||||||
10752,
|
|
||||||
12288,
|
|
||||||
18432,
|
|
||||||
19200,
|
|
||||||
24576,
|
|
||||||
30720,
|
|
||||||
36864,
|
|
||||||
39936};
|
|
||||||
|
|
||||||
unsigned int DeviceBladeRFSampleRates::getRate(unsigned int rate_index)
|
|
||||||
{
|
|
||||||
if (rate_index < m_nb_rates)
|
|
||||||
{
|
|
||||||
return m_rates[rate_index];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return m_rates[0];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int DeviceBladeRFSampleRates::getRateIndex(unsigned int rate)
|
|
||||||
{
|
|
||||||
for (unsigned int i=0; i < m_nb_rates; i++)
|
|
||||||
{
|
|
||||||
if (rate/1000 == m_rates[i])
|
|
||||||
{
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int DeviceBladeRFSampleRates::getNbRates()
|
|
||||||
{
|
|
||||||
return DeviceBladeRFSampleRates::m_nb_rates;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int DeviceBladeRFBandwidths::m_nb_halfbw = 16;
|
unsigned int DeviceBladeRFBandwidths::m_nb_halfbw = 16;
|
||||||
unsigned int DeviceBladeRFBandwidths::m_halfbw[] = {
|
unsigned int DeviceBladeRFBandwidths::m_halfbw[] = {
|
||||||
750,
|
750,
|
||||||
|
@ -18,16 +18,6 @@
|
|||||||
#define DEVICES_BLADERF_DEVICEBLADERFVALUES_H_
|
#define DEVICES_BLADERF_DEVICEBLADERFVALUES_H_
|
||||||
|
|
||||||
|
|
||||||
class DeviceBladeRFSampleRates {
|
|
||||||
public:
|
|
||||||
static unsigned int getRate(unsigned int rate_index);
|
|
||||||
static unsigned int getRateIndex(unsigned int rate);
|
|
||||||
static unsigned int getNbRates();
|
|
||||||
private:
|
|
||||||
static unsigned int m_rates[];
|
|
||||||
static unsigned int m_nb_rates;
|
|
||||||
};
|
|
||||||
|
|
||||||
class DeviceBladeRFBandwidths {
|
class DeviceBladeRFBandwidths {
|
||||||
public:
|
public:
|
||||||
static unsigned int getBandwidth(unsigned int bandwidth_index);
|
static unsigned int getBandwidth(unsigned int bandwidth_index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user