Zephyr Project API 3.7.0
A Scalable Open Source RTOS
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
7#ifndef SHELL_RTT_H__
8#define SHELL_RTT_H__
9
10#include <zephyr/shell/shell.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17
23
24#define SHELL_RTT_DEFINE(_name) \
25 static struct shell_rtt _name##_shell_rtt; \
26 struct shell_transport _name = { \
27 .api = &shell_rtt_transport_api, \
28 .ctx = (struct shell_rtt *)&_name##_shell_rtt \
29 }
30
39const struct shell *shell_backend_rtt_get_ptr(void);
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* SHELL_RTT_H__ */
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Definition shell.h:624
const struct shell * shell_backend_rtt_get_ptr(void)
Function provides pointer to shell rtt backend instance.
const struct shell_transport_api shell_rtt_transport_api
Definition shell_rtt.h:18
shell_transport_handler_t handler
Definition shell_rtt.h:19
void * context
Definition shell_rtt.h:21
struct k_timer timer
Definition shell_rtt.h:20
Unified shell transport interface.
Definition shell.h:646
Shell instance internals.
Definition shell.h:890