15#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_DUMMY_H_
16#define ZEPHYR_INCLUDE_SHELL_SHELL_DUMMY_H_
34 char buf[CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE];
43 char input_buf[CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE];
65#define SHELL_DUMMY_DEFINE(_name) \
66 static struct shell_dummy _name##_shell_dummy; \
67 struct shell_transport _name = { \
68 .api = &shell_dummy_transport_api, \
69 .ctx = (struct shell_dummy *)&_name##_shell_dummy \
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Shell transport event handler callback.
Definition shell.h:831
const struct shell * shell_backend_dummy_get_ptr(void)
This function shall not be used directly.
void shell_backend_dummy_clear_output(const struct shell *sh)
Clears the output buffer in the shell backend.
int shell_backend_dummy_push_input(const struct shell *sh, const char *data, size_t len)
Push input data to the dummy shell backend.
void shell_backend_dummy_clear_input(const struct shell *sh)
Clear the input buffer in the shell backend.
const char * shell_backend_dummy_get_output(const struct shell *sh, size_t *sizep)
Returns the buffered output in the shell and resets the pointer.
Header file for the shell subsystem.
Unified shell transport interface.
Definition shell.h:864
Shell instance internals.
Definition shell.h:1129