kopia lustrzana https://github.com/f4exb/sdrangel
HackRF support: added 4.333 MS/s rate for GSM
rodzic
f7d7551d01
commit
39006c5502
|
@ -16,10 +16,12 @@
|
|||
|
||||
#include "devicehackrfvalues.h"
|
||||
|
||||
unsigned int HackRFSampleRates::m_rates[] = {
|
||||
const unsigned int HackRFSampleRates::m_nb_rates = 16;
|
||||
const unsigned int HackRFSampleRates::m_rates[HackRFSampleRates::m_nb_rates] = {
|
||||
2400000,
|
||||
3200000,
|
||||
4000000,
|
||||
4333333, // for GSM
|
||||
4800000,
|
||||
5600000,
|
||||
6000000,
|
||||
|
@ -58,7 +60,8 @@ unsigned int HackRFSampleRates::getRateIndex(unsigned int rate)
|
|||
return 0;
|
||||
}
|
||||
|
||||
unsigned int HackRFBandwidths::m_bw_k[] = {
|
||||
const unsigned int HackRFBandwidths::m_nb_bw = 16;
|
||||
const unsigned int HackRFBandwidths::m_bw_k[HackRFBandwidths::m_nb_bw] = {
|
||||
1750,
|
||||
2500,
|
||||
3500,
|
||||
|
|
|
@ -21,16 +21,16 @@ class HackRFSampleRates {
|
|||
public:
|
||||
static unsigned int getRate(unsigned int rate_index);
|
||||
static unsigned int getRateIndex(unsigned int rate);
|
||||
static const unsigned int m_nb_rates = 15;
|
||||
static unsigned int m_rates[m_nb_rates];
|
||||
static const unsigned int m_nb_rates;
|
||||
static const unsigned int m_rates[];
|
||||
};
|
||||
|
||||
class HackRFBandwidths {
|
||||
public:
|
||||
static unsigned int getBandwidth(unsigned int bandwidth_index);
|
||||
static unsigned int getBandwidthIndex(unsigned int bandwidth);
|
||||
static const unsigned int m_nb_bw = 16;
|
||||
static unsigned int m_bw_k[m_nb_bw];
|
||||
static const unsigned int m_nb_bw;
|
||||
static const unsigned int m_bw_k[];
|
||||
};
|
||||
|
||||
#endif /* DEVICES_HACKRF_DEVICEHACKRFVALUES_H_ */
|
||||
|
|
Ładowanie…
Reference in New Issue