Object dump

Allows to print out data dumps of memory regions in hexadecimal or/and ASCII representation. More...

Detailed Description

Allows to print out data dumps of memory regions in hexadecimal or/and ASCII representation.

Files

file  od.h
 

Macros

#define OD_WIDTH_DEFAULT   (16)
 Default value for parameter width of od_hex_dump()
 

Functions

void od_hex_dump (const void *data, size_t data_len, uint8_t width)
 Dumps memory stored at data byte-wise up to data_len in hexadecimal representation to stdout. More...
 

Function Documentation

◆ od_hex_dump()

void od_hex_dump ( const void *  data,
size_t  data_len,
uint8_t  width 
)

Dumps memory stored at data byte-wise up to data_len in hexadecimal representation to stdout.

If the pseudomodlue od_string is used (USEMODULE += od_string) the ASCII representation of data is also displayed.

Parameters
[in]dataData to dump.
[in]data_lenLength in bytes of data to output.
[in]widthNumber of bytes per line. If width is 0, OD_WIDTH_DEFAULT is assumed as a default value.