|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
#include <Console.h>
Static Public Member Functions | |
| static void | init () |
| Initializes console wrapper state. | |
| static void | printf (const char *format,...) __attribute__((format(printf |
| Prints formatted text to console. | |
| static void static void | vprintf (const char *format, va_list args) |
| Prints formatted text with explicit varargs list. | |
| static void | print (const char *str) |
| Prints raw string to console. | |
| static void | putchar (char c) |
| Writes a single character to console. | |
| static int | getchar () |
| Reads one character from console input. | |
| static void | flush () |
| Flushes pending console output. | |
| static bool | available () |
| Checks whether console input is available. | |
| static void | showPrompt () |
| Prints standard shell prompt. | |
Console I/O Abstraction
Provides printf-style output and character input for serial commands. Works over USB CDC, UART, or BLE UART depending on configuration.
|
static |
Checks whether console input is available.
Check if data is available
Definition at line 90 of file Console.cpp.
|
static |
Flushes pending console output.
Flush output buffer
Definition at line 82 of file Console.cpp.
|
static |
Reads one character from console input.
Get character (non-blocking)
Definition at line 74 of file Console.cpp.
|
static |
Initializes console wrapper state.
Initialize console (USB CDC or UART)
Definition at line 19 of file Console.cpp.
|
static |
Prints raw string to console.
Print string without formatting
| str | Null-terminated text. |
Definition at line 56 of file Console.cpp.
|
static |
Prints formatted text to console.
Print formatted string
| format | Printf-style format string. |
Definition at line 30 of file Console.cpp.
|
static |
Writes a single character to console.
Print character
| c | Character to write. |
Definition at line 66 of file Console.cpp.
|
static |
Prints standard shell prompt.
Show prompt ("> ")
Definition at line 98 of file Console.cpp.
|
static |
Prints formatted text with explicit varargs list.
Print formatted string (va_list version)
| format | Printf-style format string. |
| args | Variable argument list. |
Definition at line 43 of file Console.cpp.