18 #ifndef DEVICES_LIMESDR_DEVICELIMESDRSHARED_H_ 19 #define DEVICES_LIMESDR_DEVICELIMESDRSHARED_H_ 43 int log2HardDecimInterp,
62 int log2HardDecimInterp,
66 m_devSampleRate(devSampleRate),
67 m_log2HardDecimInterp(log2HardDecimInterp),
68 m_centerFrequency(centerFrequency),
98 m_extClockFreq(m_extClockFreq)
120 m_temperature(temperature),
150 virtual void startWork() = 0;
151 virtual void stopWork() = 0;
152 virtual void setDeviceSampleRate(
int sampleRate) = 0;
153 virtual bool isRunning() = 0;
172 m_centerFrequency(0),
174 m_threadWasRunning(false)
uint64_t getCenterFrequency() const
int m_channel
logical device channel number (-1 if none)
MsgReportDeviceInfo(float temperature, uint8_t gpioPins)
MsgReportBuddyChange(int devSampleRate, int log2HardDecimInterp, uint64_t centerFrequency, bool rxElseTx)
bool m_rxElseTx
tells which side initiated the message
static MsgReportBuddyChange * create(int devSampleRate, int log2HardDecimInterp, uint64_t centerFrequency, bool rxElseTx)
MsgReportGPIOChange(uint8_t gpioDir, uint8_t gpioPins)
uint8_t getGPIOPins() const
uint64_t m_centerFrequency
Center frequency.
int getLog2HardDecimInterp() const
bool m_threadWasRunning
flag to know if thread needs to be resumed after suspend
bool m_extClock
True if external clock source.
int m_devSampleRate
device/host sample rate
#define MESSAGE_CLASS_DECLARATION
float getTemperature() const
uint8_t getGPIODir() const
static const float m_sampleFifoLengthInSeconds
static const int m_sampleFifoMinSize
int m_log2HardDecimInterp
log2 of hardware decimation or interpolation
uint64_t m_centerFrequency
uint8_t getGPIOPins() const
DeviceLimeSDRParams * m_deviceParams
unique hardware device parameters
MsgReportClockSourceChange(bool extClock, uint32_t m_extClockFreq)
uint32_t m_extClockFreq
Frequency (Hz) of external clock source.
uint32_t getExtClockFeq() const
int getDevSampleRate() const
ThreadInterface * m_thread
holds the thread address if started else 0
static MsgReportGPIOChange * create(uint8_t gpioDir, uint8_t gpioPins)
static MsgReportClockSourceChange * create(bool extClock, uint32_t m_extClockFreq)
unsigned __int64 uint64_t
static MsgReportDeviceInfo * create(float temperature, uint8_t gpioPins)