25 qDebug(
"DeviceLimeSDRParams::open: serial: %s type: %d", (
const char *) deviceStr, (
int)
m_type);
27 if (LMS_Open(&
m_dev, deviceStr, 0) < 0)
29 qCritical() <<
"DeviceLimeSDRParams::open: cannot open device " << deviceStr;
33 if (LMS_Init(
m_dev) < 0)
35 qCritical() <<
"DeviceLimeSDRParams::open: cannot init device " << deviceStr;
41 if ((n = LMS_GetNumChannels(
m_dev, LMS_CH_RX)) < 0)
43 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the number of Rx channels for device " << deviceStr;
49 qDebug() <<
"DeviceLimeSDRParams::open: " << n <<
" Rx channels for device " << deviceStr;
52 if ((n = LMS_GetNumChannels(
m_dev, LMS_CH_TX)) < 0)
54 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the number of Tx channels for device " << deviceStr;
60 qDebug() <<
"DeviceLimeSDRParams::open: " << n <<
" Tx channels for device " << deviceStr;
65 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the Rx LPF range for device " << deviceStr;
71 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the Tx LPF range for device " << deviceStr;
77 qDebug() <<
"DeviceLimeSDRParams::open: cannot get the Rx LO range for device " << deviceStr;
83 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the Tx LO range for device " << deviceStr;
89 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the Rx sample rate range for device " << deviceStr;
95 qCritical() <<
"DeviceLimeSDRParams::open: cannot get the Tx sample rate range for device " << deviceStr;
113 QString deviceStr(device_str);
115 if (deviceStr.contains(QString(
"LimeSDR Mini"))) {
117 }
else if (deviceStr.contains(QString(
"LimeSDR-USB"))) {
119 }
else if (deviceStr.contains(QString(
"media=SPI"))) {
lms_range_t m_lpfRangeRx
Low pass filter range information (Rx side)
lms_range_t m_srRangeTx
DAC sample rate range.
uint32_t m_nbTxChannels
number of Tx channels (normally 2, we'll see if we really use it...)
lms_range_t m_srRangeRx
ADC sample rate range.
uint32_t m_nbRxChannels
number of Rx channels (normally 2, we'll see if we really use it...)
lms_device_t * m_dev
device handle
lms_range_t m_lpfRangeTx
Low pass filter range information (Tx side)
LimeType m_type
Hardware type.
void getHardwareType(const char *device_str)
bool open(lms_info_str_t deviceStr)
lms_range_t m_loRangeTx
LO range for Tx.
lms_range_t m_loRangeRx
LO range for Rx.