|
ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
|

Go to the source code of this file.
Functions | |
| void | cli_poll (void) |
| Poll USB CDC for CLI input, echo, and emit line events. | |
| void | handle_cli_line (const char *line) |
| Process one CLI line. | |
| void cli_poll | ( | void | ) |
Poll USB CDC for CLI input, echo, and emit line events.
Definition at line 40 of file cli_usb_cdc.c.
References ASCII_BACKSPACE, ASCII_DELETE, ASCII_FIRST_PRINTABLE, ASCII_LAST_PRINTABLE, CLI_BUFFER_SIZE, CLI_EVENT_POOL_SIZE, CLI_MAX_CHARS_PER_POLL, EV_CLI_LINE, event_queue_push(), LOG_DEBUG, LOG_ERROR, LOG_PLAIN, and event_t::type.
Referenced by event_loop().


| void handle_cli_line | ( | const char * | line | ) |
Process one CLI line.
| line | Null-terminated line string. |
Process one CLI line.
| line | Null-terminated command line. |
Definition at line 839 of file cli_commands.c.
References cli_parse(), commands, E2S_ERR_CLI_EMPTY_LINE, E2S_ERR_CLI_LINE_TRUNCATED, E2S_OK, command_t::handler, LOG_PLAIN, MAX_ARG_BUFFER_LEN, MAX_CMD_BUFFER_LEN, and NUM_COMMANDS.
Referenced by event_dispatch().

