|
Avionics
Core avionics package for CURE flight computers
|
Lightweight UART command-line interface with history and parsing. More...
#include <UARTCommandHandler.h>

Public Member Functions | |
| CommandLine (Stream *UART) | |
| void | addCommand (const std::string &longName, const std::string &shortName, std::function< void(std::queue< std::string > argumentQueue, std::string &)> funcPtr) |
| void | executeCommand (const std::string &command, std::queue< std::string > arugments) |
| void | readInput () |
| void | processCommand (const std::string &command) |
| void | begin () |
| void | println (const std::string &message) |
| void | print (const std::string &message) |
Lightweight UART command-line interface with history and parsing.
Definition at line 29 of file UARTCommandHandler.h.
| CommandLine::CommandLine | ( | Stream * | UART | ) |
Definition at line 6 of file UARTCommandHandler.cpp.
| void CommandLine::addCommand | ( | const std::string & | longName, |
| const std::string & | shortName, | ||
| std::function< void(std::queue< std::string > argumentQueue, std::string &)> | funcPtr ) |
Definition at line 191 of file UARTCommandHandler.cpp.
| void CommandLine::begin | ( | ) |
Definition at line 9 of file UARTCommandHandler.cpp.
| void CommandLine::executeCommand | ( | const std::string & | command, |
| std::queue< std::string > | arugments ) |
Definition at line 197 of file UARTCommandHandler.cpp.
|
inline |
Definition at line 43 of file UARTCommandHandler.h.
|
inline |
Definition at line 40 of file UARTCommandHandler.h.
| void CommandLine::processCommand | ( | const std::string & | command | ) |
| void CommandLine::readInput | ( | ) |
Definition at line 15 of file UARTCommandHandler.cpp.