Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
shell_rtt.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Makaio GmbH
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_
14
#define ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_
15
16
#include <
zephyr/shell/shell.h
>
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
23
extern
const
struct
shell_transport_api
shell_rtt_transport_api;
24
25
struct
shell_rtt {
26
shell_transport_handler_t
handler;
27
struct
k_timer timer;
28
void
*context;
29
};
31
38
44
#define SHELL_RTT_DEFINE(_name) \
45
static struct shell_rtt _name##_shell_rtt; \
46
struct shell_transport _name = { \
47
.api = &shell_rtt_transport_api, \
48
.ctx = (struct shell_rtt *)&_name##_shell_rtt \
49
}
50
59
const
struct
shell
*
shell_backend_rtt_get_ptr
(
void
);
60
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif
/* ZEPHYR_INCLUDE_SHELL_SHELL_RTT_H_ */
shell_transport_handler_t
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Shell transport event handler callback.
Definition
shell.h:831
shell_backend_rtt_get_ptr
const struct shell * shell_backend_rtt_get_ptr(void)
Function provides pointer to shell rtt backend instance.
shell.h
Header file for the shell subsystem.
shell_transport_api
Unified shell transport interface.
Definition
shell.h:863
shell
Shell instance internals.
Definition
shell.h:1129
zephyr
shell
shell_rtt.h
Generated on
for Zephyr API by
1.17.0