mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 00:44:48 -04:00
LimeSDR input: implemented temperature reading
This commit is contained in:
@@ -86,6 +86,21 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
class MsgGetDeviceInfo : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
public:
|
||||
static MsgGetDeviceInfo* create()
|
||||
{
|
||||
return new MsgGetDeviceInfo();
|
||||
}
|
||||
|
||||
private:
|
||||
MsgGetDeviceInfo() :
|
||||
Message()
|
||||
{ }
|
||||
};
|
||||
|
||||
class MsgReportLimeSDRToGUI : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
@@ -193,6 +208,26 @@ public:
|
||||
{ }
|
||||
};
|
||||
|
||||
class MsgReportDeviceInfo : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
public:
|
||||
float getTemperature() const { return m_temperature; }
|
||||
|
||||
static MsgReportDeviceInfo* create(float temperature)
|
||||
{
|
||||
return new MsgReportDeviceInfo(temperature);
|
||||
}
|
||||
|
||||
private:
|
||||
float m_temperature;
|
||||
|
||||
MsgReportDeviceInfo(float temperature) :
|
||||
Message(),
|
||||
m_temperature(temperature)
|
||||
{ }
|
||||
};
|
||||
|
||||
LimeSDRInput(DeviceSourceAPI *deviceAPI);
|
||||
virtual ~LimeSDRInput();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user