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

BladerRF2 input support. Populate gain modes

This commit is contained in:
f4exb
2018-09-25 17:03:34 +02:00
parent fcaf22418d
commit 5ad52a4a1b
19 changed files with 675 additions and 31 deletions
@@ -28,6 +28,7 @@
class DeviceSourceAPI;
class BladeRF2InputThread;
class FileRecord;
struct bladerf_gain_modes;
class BladeRF2Input : public DeviceSampleSource
{
@@ -116,6 +117,7 @@ public:
void getSampleRateRange(int& min, int& max, int& step);
void getBandwidthRange(int& min, int& max, int& step);
void getGlobalGainRange(int& min, int& max, int& step);
const bladerf_gain_modes *getGainModes(int& nbGains);
virtual bool handleMessage(const Message& message);
@@ -151,6 +153,8 @@ private:
DeviceBladeRF2Shared m_deviceShared;
BladeRF2InputThread *m_thread;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
bladerf_gain_modes **m_gainModes;
int m_nbGainModes;
bool openDevice();
void closeDevice();