ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
cli_usb_cdc.h File Reference
This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

◆ cli_poll()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle_cli_line()

void handle_cli_line ( const char *  line)

Process one CLI line.

Parameters
lineNull-terminated line string.

Process one CLI line.

Parameters
lineNull-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().

Here is the call graph for this function:
Here is the caller graph for this function: