|
wiRedPanda
Logic Circuit Simulator
|
Generates an Arduino sketch from a flattened list of circuit elements. More...
#include <ArduinoCodeGen.h>
Classes | |
| struct | TestVector |
| Describes a single test vector for testbench generation. More... | |
Public Member Functions | |
| ArduinoCodeGen (const QString &fileName, const QVector< GraphicElement * > &elements) | |
| Constructs the code generator targeting fileName. | |
| void | generate () |
| Generates the Arduino sketch and writes it to the output file. | |
| void | generateTestbench (const QString &tbFileName, const QVector< TestVector > &vectors) |
Generates an Arduino sketch from a flattened list of circuit elements.
Translates combinational and simple sequential logic into C++ code suitable for upload to an Arduino-compatible microcontroller.
Definition at line 76 of file ArduinoCodeGen.h.
| ArduinoCodeGen::ArduinoCodeGen | ( | const QString & | fileName, |
| const QVector< GraphicElement * > & | elements ) |
Constructs the code generator targeting fileName.
| fileName | Output file path for the generated sketch. |
| elements | Ordered list of graphic elements to translate. |
Definition at line 25 of file ArduinoCodeGen.cpp.
| void ArduinoCodeGen::generate | ( | ) |
Generates the Arduino sketch and writes it to the output file.
Definition at line 135 of file ArduinoCodeGen.cpp.
References Scene::wirelessTxInputPorts().
Referenced by ExportController::exportToArduino().
| void ArduinoCodeGen::generateTestbench | ( | const QString & | tbFileName, |
| const QVector< TestVector > & | vectors ) |
Definition at line 1261 of file ArduinoCodeGen.cpp.
References Simulation::kMaxSettleIterations, and PANDACEPTION.