13#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_RPMSG_H_
14#define ZEPHYR_INCLUDE_SHELL_SHELL_RPMSG_H_
18#include <openamp/rpmsg.h>
28struct shell_rpmsg_rx {
50 struct rpmsg_endpoint ept;
56 struct shell_rpmsg_rx rx_buf[CONFIG_SHELL_RPMSG_MAX_RX];
59 struct shell_rpmsg_rx rx_cur;
78#define SHELL_RPMSG_DEFINE(_name) \
79 static struct shell_rpmsg _name##_shell_rpmsg; \
80 struct shell_transport _name = { \
81 .api = &shell_rpmsg_transport_api, \
82 .ctx = (struct shell_rpmsg *)&_name##_shell_rpmsg, \
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_rpmsg_get_ptr(void)
This function provides pointer to shell RPMsg backend instance.
int shell_backend_rpmsg_init_transport(struct rpmsg_device *rpmsg_dev)
Initialize the Shell backend using the provided rpmsg_dev device.
Header file for the shell subsystem.
Unified shell transport interface.
Definition shell.h:863
Shell instance internals.
Definition shell.h:1128