18 #ifndef DEVICES_LIMESDR_DEVICELIMESDRSHARED_H_ 19 #define DEVICES_LIMESDR_DEVICELIMESDRSHARED_H_ 46 unsigned log2HardDecimInterp,
65 unsigned log2HardDecimInterp,
69 m_devSampleRate(devSampleRate),
70 m_log2HardDecimInterp(log2HardDecimInterp),
71 m_centerFrequency(centerFrequency),
100 m_extClock(extClock),
101 m_extClockFreq(m_extClockFreq)
123 m_temperature(temperature),
124 m_gpsLocked(gpsLocked)
131 virtual void startWork() = 0;
132 virtual void stopWork() = 0;
133 virtual bool isRunning() = 0;
uint64_t getCenterFrequency() const
static MsgReportClockSourceChange * create(bool extClock, uint32_t m_extClockFreq)
uint32_t getExtClockFeq() const
int getDevSampleRate() const
int m_devSampleRate
device/host sample rate
MsgReportClockSourceChange(bool extClock, uint32_t m_extClockFreq)
bool m_threadWasRunning
flag to know if thread needs to be resumed after suspend
bool getGPSLocked() const
bool m_rxElseTx
tells which side initiated the message
MsgReportBuddyChange(int devSampleRate, unsigned log2HardDecimInterp, uint64_t centerFrequency, bool rxElseTx)
#define MESSAGE_CLASS_DECLARATION
static const int m_sampleFifoMinSize
double get_board_temperature()
uint64_t m_last_1pps_count
float getTemperature() const
MsgReportDeviceInfo(float temperature, bool gpsLocked)
uint64_t m_centerFrequency
Center frequency.
int m_channel
allocated channel (-1 if none)
bool m_extClock
True if external clock source.
unsigned getLog2HardDecimInterp() const
static MsgReportBuddyChange * create(int devSampleRate, unsigned log2HardDecimInterp, uint64_t centerFrequency, bool rxElseTx)
uint32_t m_extClockFreq
Frequency (Hz) of external clock source.
uint32_t m_no_1pps_count_change_counter
ThreadInterface * m_thread
holds the thread address if started else 0
unsigned m_log2HardDecimInterp
log2 of hardware decimation or interpolation
static MsgReportDeviceInfo * create(float temperature, bool gpsLocked)
static const float m_sampleFifoLengthInSeconds
unsigned __int64 uint64_t