Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_rtt.h File Reference

Go to the source code of this file.

Data Structures

struct  shell_rtt
 

Macros

#define SHELL_RTT_DEFINE(_name)
 

Functions

const struct shellshell_backend_rtt_get_ptr (void)
 Function provides pointer to shell rtt backend instance.
 

Variables

const struct shell_transport_api shell_rtt_transport_api
 

Macro Definition Documentation

◆ SHELL_RTT_DEFINE

#define SHELL_RTT_DEFINE (   _name)
Value:
static struct shell_rtt _name##_shell_rtt; \
struct shell_transport _name = { \
.ctx = (struct shell_rtt *)&_name##_shell_rtt \
}
const struct shell_transport_api shell_rtt_transport_api
Definition: shell_rtt.h:18
Definition: shell.h:724
const struct shell_transport_api * api
Definition: shell.h:725

Function Documentation

◆ shell_backend_rtt_get_ptr()

const struct shell * shell_backend_rtt_get_ptr ( void  )

Function provides pointer to shell rtt backend instance.

Function returns pointer to the shell rtt 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_rtt_transport_api

const struct shell_transport_api shell_rtt_transport_api
extern