9#ifndef ZEPHYR_INCLUDE_SHELL_DUMMY_H_
10#define ZEPHYR_INCLUDE_SHELL_DUMMY_H_
27 char buf[CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE];
30#define SHELL_DUMMY_DEFINE(_name) \
31 static struct shell_dummy _name##_shell_dummy; \
32 struct shell_transport _name = { \
33 .api = &shell_dummy_transport_api, \
34 .ctx = (struct shell_dummy *)&_name##_shell_dummy \
const struct shell * shell_backend_dummy_get_ptr(void)
This function shall not be used directly.
const struct shell_transport_api shell_dummy_transport_api
void shell_backend_dummy_clear_output(const struct shell *sh)
Clears the output 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.
Definition shell_dummy.h:20
bool initialized
Definition shell_dummy.h:21
size_t len
current number of bytes in buffer (0 if no output)
Definition shell_dummy.h:24
char buf[CONFIG_SHELL_BACKEND_DUMMY_BUF_SIZE]
output buffer to collect shell output
Definition shell_dummy.h:27
Unified shell transport interface.
Definition shell.h:646
Shell instance internals.
Definition shell.h:890