Bioscara
DALSA's DIY SCARA Robot Arm.
Loading...
Searching...
No Matches
Macros
common.h File Reference

A file containing utility macros and functions. More...

Go to the source code of this file.

Macros

#define DUMP_BUFFER(buffer, size)
 Macro to dump a buffer to cout.
 

Detailed Description

A file containing utility macros and functions.

Author
sbstorz
Version
0.1
Date
2025-05-27

Macro Definition Documentation

◆ DUMP_BUFFER

#define DUMP_BUFFER (   buffer,
  size 
)
Value:
{ \
std::cout << "Buffer dump: "; \
for (size_t i = 0; i < size; i++) \
{ \
printf("%#x ", buffer[i]); \
} \
std::cout << std::endl; \
}

Macro to dump a buffer to cout.

Parameters
bufferpointer to a buffer to dump to the console
sizenumber of bytes to dump