The C++ code

While the VHDL code implements a simple display output with basic input options, if we want to have a large (high-resolution) display, perform signal analysis, make recordings of multiple minutes or even hours, and so on, it will be very convenient to be able to do this on an SBC.

The following code is written as a C++/Qt graphical application that takes in the raw ADC data from the FPGA board and displays it in a graph. While barebones, it provides the framework for a full-featured, SoC-based system.

First, the header is shown, as follows:

#include <QMainWindow> #include <QSerialPort> #include <QChartView> #include <QLineSeries> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit ...

Get Hands-On Embedded Programming with C++17 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.