Go to the source code of this file.
◆ SHELL_DUMMY_DEFINE
#define SHELL_DUMMY_DEFINE |
( |
|
_name | ) |
|
Value:
}
const struct shell_transport_api shell_dummy_transport_api
Definition shell_dummy.h:20
const struct shell_transport_api * api
Definition shell.h:725
◆ shell_backend_dummy_clear_output()
void shell_backend_dummy_clear_output |
( |
const struct shell * |
sh | ) |
|
Clears the output buffer in the shell backend.
- Parameters
-
◆ shell_backend_dummy_get_output()
const char * shell_backend_dummy_get_output |
( |
const struct shell * |
sh, |
|
|
size_t * |
sizep |
|
) |
| |
Returns the buffered output in the shell and resets the pointer.
The returned data is always followed by a nul character at position *sizep
- Parameters
-
sh | Shell pointer |
sizep | Returns size of data in shell buffer |
- Returns
- pointer to buffer containing shell output
◆ shell_backend_dummy_get_ptr()
const struct shell * shell_backend_dummy_get_ptr |
( |
void |
| ) |
|
This function shall not be used directly.
It provides pointer to shell dummy backend instance.
Function returns pointer to the shell dummy instance. This instance can be next used with shell_execute_cmd function in order to test commands behavior.
- Returns
- Pointer to the shell instance.
◆ shell_dummy_transport_api