#include <memory>
#include <string>
#include "BinaryLogger.h"
#include "Types.h"
Go to the source code of this file.
|
#define | hi(x) (unsigned char)(((x) >> 8) & 0xff) |
|
#define | lo(x) (unsigned char)((x) & 0xff) |
|
#define | make_float(result, byteptr) memcpy(&result, byteptr, sizeof(float)) |
|
#define | make_int(lowbyte, mid1, mid2, highbyte) |
|
#define | make_short(lowbyte, highbyte) ((unsigned short)lowbyte | ((unsigned short)highbyte << 8)) |
|
#define | make_signed_short(lowbyte, highbyte) ((signed short)((unsigned short)lowbyte | ((unsigned short)highbyte << 8))) |
|
#define | MSG_PREAMBLE_BYTE 0xaa |
|
#define | MSG_PREAMBLE_LEN 3 |
|
◆ hi
#define hi |
( |
|
x | ) |
(unsigned char)(((x) >> 8) & 0xff) |
◆ lo
#define lo |
( |
|
x | ) |
(unsigned char)((x) & 0xff) |
◆ make_float
#define make_float |
( |
|
result, |
|
|
|
byteptr |
|
) |
| memcpy(&result, byteptr, sizeof(float)) |
◆ make_int
#define make_int |
( |
|
lowbyte, |
|
|
|
mid1, |
|
|
|
mid2, |
|
|
|
highbyte |
|
) |
| |
Value: ((unsigned int)lowbyte | ((unsigned int)mid1 << 8) | ((unsigned int)mid2 << 16) | \
((unsigned int)highbyte << 24))
Definition at line 40 of file AbstractInterface.h.
◆ make_short
#define make_short |
( |
|
lowbyte, |
|
|
|
highbyte |
|
) |
| ((unsigned short)lowbyte | ((unsigned short)highbyte << 8)) |
◆ make_signed_short
#define make_signed_short |
( |
|
lowbyte, |
|
|
|
highbyte |
|
) |
| ((signed short)((unsigned short)lowbyte | ((unsigned short)highbyte << 8))) |
◆ MSG_PREAMBLE_BYTE
#define MSG_PREAMBLE_BYTE 0xaa |
◆ MSG_PREAMBLE_LEN
#define MSG_PREAMBLE_LEN 3 |
◆ operator<<()