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

Go to the source code of this file.

Functions

static const struct shellshell_backend_get (uint32_t idx)
 Get backend.
 
static int shell_backend_count_get (void)
 Get number of backends.
 
const struct shellshell_backend_get_by_name (const char *backend_name)
 Get backend by name.
 

Function Documentation

◆ shell_backend_count_get()

static int shell_backend_count_get ( void  )
inlinestatic

Get number of backends.

Returns
Number of backends.

◆ shell_backend_get()

static const struct shell * shell_backend_get ( uint32_t  idx)
inlinestatic

Get backend.

Parameters
[in]idxPointer to the backend instance.
Returns
Pointer to the backend instance.

◆ shell_backend_get_by_name()

const struct shell * shell_backend_get_by_name ( const char *  backend_name)

Get backend by name.

Parameters
[in]backend_nameName of the backend as defined by the SHELL_DEFINE.
Return values
Pointerto the backend instance if found, NULL if backend is not found.