Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
shell_telnet.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef SHELL_TELNET_H__
8#define SHELL_TELNET_H__
9
10#include <shell/shell.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17
21 char buf[CONFIG_SHELL_TELNET_LINE_BUF_SIZE];
22
25};
26
31
34
37
40
43
50
53};
54
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 \
60 }
61
71
72#ifdef __cplusplus
73}
74#endif
75
76#endif /* SHELL_TELNET_H__ */
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