|
HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
|
Visual output formatting system for UART command interface. More...
Functions | |
| void | PrintSuccess (const char *format,...) |
| Print a success message to the ESP-IDF log. | |
| void | PrintError (const char *format,...) |
| Print an error message to the ESP-IDF log. | |
| void | PrintInfo (const char *format,...) |
| Print an informational message to the ESP-IDF log. | |
| void | PrintWarning (const char *format,...) |
| Print a warning message to the ESP-IDF log. | |
| void | PrintHeader (const char *title) |
| Print a boxed header line for human-readable UART output. | |
| void | PrintSeparator () |
| Print a boxed separator line for UART output. | |
| void | PrintFooter () |
| Print a boxed footer line for UART output. | |
| void | PrintTableRow (const char *label, const char *value) |
| Print a key/value row within the boxed UART output format. | |
| void | PrintEmptyLine () |
| Print an empty boxed line for spacing in UART output. | |
| void | PrintCommandResult (const char *command, bool success, const char *details=nullptr) |
| Print a success/failure result line for a command. | |
Variables | |
| static constexpr int | BOX_WIDTH = 78 |
Visual output formatting system for UART command interface.
Provides formatted output functions for the UART command parser, including boxed headers, success/error messages, and table formatting. All output uses ESP-IDF logging macros for consistency.
| void CommandOutput::PrintCommandResult | ( | const char * | command, |
| bool | success, | ||
| const char * | details = nullptr ) |
Print a success/failure result line for a command.
| command | Command name (displayed). |
| success | Whether the command succeeded. |
| details | Optional additional details. |
| void CommandOutput::PrintEmptyLine | ( | ) |
Print an empty boxed line for spacing in UART output.
| void CommandOutput::PrintError | ( | const char * | format, |
| ... ) |
Print an error message to the ESP-IDF log.
| format | printf-style format string. |
| ... | printf-style arguments. |
ESP_LOGE and includes an error glyph prefix. | void CommandOutput::PrintFooter | ( | ) |
Print a boxed footer line for UART output.
| void CommandOutput::PrintHeader | ( | const char * | title | ) |
Print a boxed header line for human-readable UART output.
| title | Title to center in the header. |
| void CommandOutput::PrintInfo | ( | const char * | format, |
| ... ) |
Print an informational message to the ESP-IDF log.
| format | printf-style format string. |
| ... | printf-style arguments. |
ESP_LOGI and includes an info glyph prefix. | void CommandOutput::PrintSeparator | ( | ) |
Print a boxed separator line for UART output.
| void CommandOutput::PrintSuccess | ( | const char * | format, |
| ... ) |
Print a success message to the ESP-IDF log.
| format | printf-style format string. |
| ... | printf-style arguments. |
ESP_LOGI and includes a success glyph prefix. | void CommandOutput::PrintTableRow | ( | const char * | label, |
| const char * | value ) |
Print a key/value row within the boxed UART output format.
| label | Left column label. |
| value | Right column value (will be truncated to fit). |
| void CommandOutput::PrintWarning | ( | const char * | format, |
| ... ) |
Print a warning message to the ESP-IDF log.
| format | printf-style format string. |
| ... | printf-style arguments. |
ESP_LOGW and includes a warning glyph prefix.
|
staticconstexpr |