7#ifndef SHELL_TELNET_H__
8#define SHELL_TELNET_H__
21 char buf[CONFIG_SHELL_TELNET_LINE_BUF_SIZE];
55#define SHELL_TELNET_DEFINE(_name) \
56 static struct shell_telnet _name##_shell_telnet; \
57 struct shell_transport _name = { \
58 .api = &shell_telnet_transport_api, \
59 .ctx = (struct shell_telnet *)&_name##_shell_telnet \
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Definition: shell.h:498
const struct shell_transport_api shell_telnet_transport_api
const struct shell * shell_backend_telnet_get_ptr(void)
This function provides pointer to shell telnet backend instance.
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: kernel.h:2153
A structure used to submit work after a delay.
Definition: kernel.h:3651
A structure holding internal state for a pending synchronous operation on a work item or queue.
Definition: kernel.h:3734
Definition: net_context.h:201
Definition: shell_telnet.h:19
uint16_t len
Definition: shell_telnet.h:24
char buf[CONFIG_SHELL_TELNET_LINE_BUF_SIZE]
Definition: shell_telnet.h:21
Definition: shell_telnet.h:28
struct k_work_delayable send_work
Definition: shell_telnet.h:48
shell_transport_handler_t shell_handler
Definition: shell_telnet.h:30
struct net_context * client_ctx
Definition: shell_telnet.h:39
void * shell_context
Definition: shell_telnet.h:33
struct shell_telnet_line_buf line_out
Definition: shell_telnet.h:36
bool output_lock
Definition: shell_telnet.h:52
struct k_work_sync work_sync
Definition: shell_telnet.h:49
struct k_fifo rx_fifo
Definition: shell_telnet.h:42
Unified shell transport interface.
Definition: shell.h:519
Shell instance internals.
Definition: shell.h:720