1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

Make sure 3 and 6 MS/s are supported by HackRF and BladeRF for transmission to match Airspy Mini sample rates

This commit is contained in:
f4exb
2017-03-12 00:41:05 +01:00
parent 4acdf78a22
commit b544acf53b
3 changed files with 46 additions and 6 deletions
+42 -3
View File
@@ -17,8 +17,31 @@
#include "devicebladerfvalues.h"
unsigned int DeviceBladeRFSampleRates::m_rates[] = {1536, 1600, 2000, 2304, 2400, 3072, 3200, 4608, 4800, 6144, 7680, 9216, 9600, 10752, 12288, 18432, 19200, 24576, 30720, 36864, 39936};
unsigned int DeviceBladeRFSampleRates::m_nb_rates = 21;
unsigned int DeviceBladeRFSampleRates::m_nb_rates = 23;
unsigned int DeviceBladeRFSampleRates::m_rates[] = {
1536,
1600,
2000,
2304,
2400,
3000,
3072,
3200,
4608,
4800,
6000,
6144,
7680,
9216,
9600,
10752,
12288,
18432,
19200,
24576,
30720,
36864,
39936};
unsigned int DeviceBladeRFSampleRates::getRate(unsigned int rate_index)
{
@@ -50,8 +73,24 @@ unsigned int DeviceBladeRFSampleRates::getNbRates()
return DeviceBladeRFSampleRates::m_nb_rates;
}
unsigned int DeviceBladeRFBandwidths::m_halfbw[] = {750, 875, 1250, 1375, 1500, 1920, 2500, 2750, 3000, 3500, 4375, 5000, 6000, 7000, 10000, 14000};
unsigned int DeviceBladeRFBandwidths::m_nb_halfbw = 16;
unsigned int DeviceBladeRFBandwidths::m_halfbw[] = {
750,
875,
1250,
1375,
1500,
1920,
2500,
2750,
3000,
3500,
4375,
5000,
6000,
7000,
10000,
14000};
unsigned int DeviceBladeRFBandwidths::getBandwidth(unsigned int bandwidth_index)
{