Allows to print out data dumps of memory regions in hexadecimal or/and ASCII representation.
More...
Allows to print out data dumps of memory regions in hexadecimal or/and ASCII representation.
|
void | od_hex_dump_ext (const void *data, size_t data_len, uint8_t width, uint32_t offset) |
| Dumps memory stored at data byte-wise up to data_len in hexadecimal representation to stdout.
|
|
static 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.
|
|
◆ OD_WIDTH_DEFAULT
#define OD_WIDTH_DEFAULT (16) |
◆ od_hex_dump()
static void od_hex_dump |
( |
const void * |
data, |
|
|
size_t |
data_len, |
|
|
uint8_t |
width |
|
) |
| |
|
inlinestatic |
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] | data | Data to dump. |
[in] | data_len | Length in bytes of data to output. |
[in] | width | Number of bytes per line. If width is 0, OD_WIDTH_DEFAULT is assumed as a default value. |
Definition at line 65 of file od.h.
◆ od_hex_dump_ext()
void od_hex_dump_ext |
( |
const void * |
data, |
|
|
size_t |
data_len, |
|
|
uint8_t |
width, |
|
|
uint32_t |
offset |
|
) |
| |
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. The displayed start address of data can be given as offset.
- Parameters
-
[in] | data | Data to dump. |
[in] | data_len | Length in bytes of data to output. |
[in] | width | Number of bytes per line. If width is 0, OD_WIDTH_DEFAULT is assumed as a default value. |
[in] | offset | Adds an offset to the printed memory addresses. If the origin of the data is an address in memory, this can be used to print the real addresses together with the data. |