Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_remote_cli.h File Reference

APIs for the remote shell client. More...

Go to the source code of this file.

Macros

#define SHELL_REMOTE_CLI_ALIGN   sizeof(long long)
 Alignment for the cbprintf package for the remote shell CLI.
#define SHELL_REMOTE_CLI_FPRINTF(_sh, _color, ...)
 Print a formatted string to the remote shell.

Functions

void shell_remote_cli_cbpprintf (const struct shell *sh, enum shell_vt100_color color, void *package, size_t len)
 Print a formatted string to the remote shell.
void shell_remote_cmd_process (void)
 Process the remote message in the main context when CONFIG_MULTITHREADING is disabled.

Detailed Description

APIs for the remote shell client.

Macro Definition Documentation

◆ SHELL_REMOTE_CLI_ALIGN

#define SHELL_REMOTE_CLI_ALIGN   sizeof(long long)

Alignment for the cbprintf package for the remote shell CLI.

◆ SHELL_REMOTE_CLI_FPRINTF

#define SHELL_REMOTE_CLI_FPRINTF ( _sh,
_color,
... )
Value:
do { \
int _plen; \
void *_pkg; \
uint32_t _options = \
CBPRINTF_STATIC_PACKAGE(NULL, 0, _plen, SHELL_REMOTE_CLI_ALIGN, _options, \
__VA_ARGS__); \
_pkg = __builtin_alloca_with_align(_plen, 8); \
CBPRINTF_STATIC_PACKAGE(_pkg, _plen, _plen, SHELL_REMOTE_CLI_ALIGN, _options, \
__VA_ARGS__); \
shell_remote_cli_cbpprintf(_sh, _color, _pkg, _plen); \
} while (0)
#define CBPRINTF_PACKAGE_ADD_RO_STR_POS
Append locations (within the package) of read-only string pointers.
Definition cbprintf.h:159
#define CBPRINTF_PACKAGE_ADD_RW_STR_POS
Append locations (within the package) of read-write string pointers.
Definition cbprintf.h:165
#define NULL
Definition iar_missing_defs.h:20
#define SHELL_REMOTE_CLI_ALIGN
Alignment for the cbprintf package for the remote shell CLI.
Definition shell_remote_cli.h:40
__UINT32_TYPE__ uint32_t
Definition stdint.h:90

Print a formatted string to the remote shell.

Macro is using static packaging to build a package. Space is allocated on the stack.

Parameters
_shThe shell to print to
_colorThe color of the text
...The formatted string

Function Documentation

◆ shell_remote_cli_cbpprintf()

void shell_remote_cli_cbpprintf ( const struct shell * sh,
enum shell_vt100_color color,
void * package,
size_t len )

Print a formatted string to the remote shell.

Parameters
[in]shPointer to the shell instance.
[in]colorPrinted text color.
[in]packagePointer to the package.
[in]lenLength of the package.

◆ shell_remote_cmd_process()

void shell_remote_cmd_process ( void )

Process the remote message in the main context when CONFIG_MULTITHREADING is disabled.