RTEMS  5.1
Macros | Functions
dumpbuf.c File Reference

Dump Buffer. More...

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <rtems/dumpbuf.h>
#include <rtems/bspIo.h>

Macros

#define HEX_FMT_LENGTH   3 /* Length of the formatted hex string. */
 
#define ASCII_FMT_LENGTH   1 /* Length of the formatted ASCII string. */
 
#define BYTES_PER_ROW   16 /* Amount of bytes from buffer shown in each row. */
 
#define BARS   2 /* Amount of bars in each row. */
 
#define ROW_LENGTH   (BYTES_PER_ROW * (HEX_FMT_LENGTH + ASCII_FMT_LENGTH) + BARS)
 

Functions

void rtems_print_buffer (const unsigned char *buffer, const int length)
 Print length bytes from buffer, both in hex and ASCII. Printing will be done in rows, each showing BYTES_PER_ROW bytes. More...
 

Detailed Description

Dump Buffer.