Zephyr API Documentation 4.4.99
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
12
13#ifndef ZEPHYR_INCLUDE_SHELL_RTT_H_
14#define ZEPHYR_INCLUDE_SHELL_RTT_H_
15
16#include <zephyr/shell/shell.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23
29
30#define SHELL_RTT_DEFINE(_name) \
31 static struct shell_rtt _name##_shell_rtt; \
32 struct shell_transport _name = { \
33 .api = &shell_rtt_transport_api, \
34 .ctx = (struct shell_rtt *)&_name##_shell_rtt \
35 }
36
45const struct shell *shell_backend_rtt_get_ptr(void);
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* ZEPHYR_INCLUDE_SHELL_RTT_H_ */
void(* shell_transport_handler_t)(enum shell_transport_evt evt, void *context)
Definition shell.h:795
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
Kernel timer structure.
Definition kernel.h:1777
Definition shell_rtt.h:24
shell_transport_handler_t handler
Definition shell_rtt.h:25
void * context
Definition shell_rtt.h:27
struct k_timer timer
Definition shell_rtt.h:26
Unified shell transport interface.
Definition shell.h:818
Shell instance internals.
Definition shell.h:1065