Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
shell_telnet.h File Reference
#include <shell/shell.h>

Go to the source code of this file.

Data Structures

struct  shell_telnet_line_buf
 
struct  shell_telnet
 

Macros

#define SHELL_TELNET_DEFINE(_name)
 

Functions

const struct shellshell_backend_telnet_get_ptr (void)
 This function provides pointer to shell telnet backend instance. More...
 

Variables

const struct shell_transport_api shell_telnet_transport_api
 

Macro Definition Documentation

◆ SHELL_TELNET_DEFINE

#define SHELL_TELNET_DEFINE (   _name)
Value:
static struct shell_telnet _name##_shell_telnet; \
struct shell_transport _name = { \
.ctx = (struct shell_telnet *)&_name##_shell_telnet \
}
const struct shell_transport_api shell_telnet_transport_api
Definition: shell_telnet.h:28
Definition: shell.h:597
const struct shell_transport_api * api
Definition: shell.h:598

Function Documentation

◆ shell_backend_telnet_get_ptr()

const struct shell * shell_backend_telnet_get_ptr ( void  )

This function provides pointer to shell telnet backend instance.

Function returns pointer to the shell telnet instance. This instance can be next used with shell_execute_cmd function in order to test commands behavior.

Returns
Pointer to the shell instance.

Variable Documentation

◆ shell_telnet_transport_api

const struct shell_transport_api shell_telnet_transport_api
extern