1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

BladerRF2 input support. Global gain handling

This commit is contained in:
f4exb
2018-09-25 23:43:52 +02:00
parent 5ad52a4a1b
commit 81ad05cb64
3 changed files with 82 additions and 2 deletions
@@ -94,6 +94,31 @@ public:
{ }
};
class MsgReportGainRange : public Message {
MESSAGE_CLASS_DECLARATION
public:
int getMin() const { return m_min; }
int getMax() const { return m_max; }
int getStep() const { return m_step; }
static MsgReportGainRange* create(int min, int max, int step) {
return new MsgReportGainRange(min, max, step);
}
protected:
int m_min;
int m_max;
int m_step;
MsgReportGainRange(int min, int max, int step) :
Message(),
m_min(min),
m_max(max),
m_step(step)
{}
};
BladeRF2Input(DeviceSourceAPI *deviceAPI);
virtual ~BladeRF2Input();
virtual void destroy();