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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.