Shell: Introduce shell_hexdump
This introduces shell_hexdump API which can be used to print an array such as a network buffer. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
3ad96bfc91
commit
65e350e6af
2 changed files with 31 additions and 0 deletions
|
@ -624,6 +624,15 @@ int shell_stop(const struct shell *shell);
|
|||
void shell_fprintf(const struct shell *shell, enum shell_vt100_color color,
|
||||
const char *fmt, ...);
|
||||
|
||||
/**
|
||||
* @brief Print data in hexadecimal format.
|
||||
*
|
||||
* @param[in] shell Pointer to the shell instance.
|
||||
* @param[in] data Pointer to data.
|
||||
* @param[in] len Length of data.
|
||||
*/
|
||||
void shell_hexdump(const struct shell *shell, const u8_t *data, size_t len);
|
||||
|
||||
/**
|
||||
* @brief Print info message to the shell.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue