EasyManua.ls Logo

Espressif ESP32-S2 - Page 815

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
struct esp_console_dev_usb_cdc_config_t
Parameters for console device: USB CDC.
Note Its an empty structure for now, reserved for future
struct esp_console_cmd_t
Console command description.
Public Members
const char *command
Command name. Must not be NULL, must not contain spaces. The pointer must be valid until the call
to esp_console_deinit.
const char *help
Help text for the command, shown by help command. If set, the pointer must be valid until the call to
esp_console_deinit. If not set, the command will not be listed in helpoutput.
const char *hint
Hint text, usually lists possible arguments. If set to NULL, and argtableeld is non-NULL, hint will
be generated automatically
esp_console_cmd_func_t func
Pointer to a function which implements the command.
void *argtable
Array or structure of pointers to arg_xxx structures, may be NULL. Used to generate hint text ifhint
is set to NULL. Array/structure which this field points to must end with an arg_end. Only used for the
duration of esp_console_cmd_register call.
struct esp_console_repl_s
Console REPL base structure.
Public Members
esp_err_t (*del)(esp_console_repl_t *repl)
Delete console REPL environment.
Return
ESP_OK on success
ESP_FAIL on errors
Parameters
[in] repl: REPL handle returned from esp_console_new_repl_xxx
Macros
ESP_CONSOLE_CONFIG_DEFAULT()
Default console configuration value.
ESP_CONSOLE_REPL_CONFIG_DEFAULT()
Default console repl configuration value.
ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT()
ESP_CONSOLE_DEV_CDC_CONFIG_DEFAULT()
Type Definitions
typedef struct linenoiseCompletions linenoiseCompletions
typedef int (*esp_console_cmd_func_t)(int argc, char **argv)
Console command main function.
Return console command return code, 0 indicates success
Parameters
Espressif Systems 804
Submit Document Feedback
Release v4.4

Table of Contents