mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-09 09:25:07 -04:00
New ambe section to group new classes to handle AMBE serial or networked devices (using AMBE server)
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include <QDebug>
|
||||
#include <QElapsedTimer>
|
||||
|
||||
#include "ambe/ambeengine.h"
|
||||
|
||||
#include "mainbench.h"
|
||||
|
||||
MainBench *MainBench::m_instance = 0;
|
||||
@@ -60,6 +62,8 @@ void MainBench::run()
|
||||
testDecimateFI();
|
||||
} else if (m_parser.getTestType() == ParserBench::TestDecimatorsFF) {
|
||||
testDecimateFF();
|
||||
} else if (m_parser.getTestType() == ParserBench::TestAMBE) {
|
||||
testAMBE();
|
||||
} else {
|
||||
qDebug() << "MainBench::run: unknown test type: " << m_parser.getTestType();
|
||||
}
|
||||
@@ -191,6 +195,18 @@ void MainBench::testDecimateFF()
|
||||
delete[] buf;
|
||||
}
|
||||
|
||||
void MainBench::testAMBE()
|
||||
{
|
||||
qDebug() << "MainBench::testAMBE";
|
||||
AMBEEngine ambeEngine;
|
||||
std::vector<std::string> ambeDevices;
|
||||
ambeEngine.scan(ambeDevices);
|
||||
|
||||
for (std::vector<std::string>::const_iterator it = ambeDevices.begin(); it != ambeDevices.end(); ++it) {
|
||||
qDebug("MainBench::testAMBE: detected AMBE device %s", it->c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void MainBench::decimateII(const qint16* buf, int len)
|
||||
{
|
||||
SampleVector::iterator it = m_convertBuffer.begin();
|
||||
|
||||
Reference in New Issue
Block a user