AbstractInterface.h File Reference
#include <memory>
#include <string>
#include "Types.h"
#include "BinaryLogger.h"
+ Include dependency graph for AbstractInterface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AbstractInterface
 

Macros

#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)   ( (unsigned int) lowbyte | ( (unsigned int) mid1 << 8 ) | ( (unsigned int) mid2 << 16 ) | ( (unsigned int) highbyte << 24 ) )
 
#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
 

Functions

std::ostream & operator<< (std::ostream &strm, const AbstractInterface &a)
 

Macro Definition Documentation

◆ hi

#define hi (   x)    (unsigned char) ( ((x) >> 8) & 0xff )

Definition at line 42 of file AbstractInterface.h.

◆ lo

#define lo (   x)    (unsigned char) ( (x) & 0xff )

Definition at line 43 of file AbstractInterface.h.

◆ make_float

#define make_float (   result,
  byteptr 
)    memcpy( &result, byteptr, sizeof( float ) )

Definition at line 39 of file AbstractInterface.h.

◆ make_int

#define make_int (   lowbyte,
  mid1,
  mid2,
  highbyte 
)    ( (unsigned int) lowbyte | ( (unsigned int) mid1 << 8 ) | ( (unsigned int) mid2 << 16 ) | ( (unsigned int) highbyte << 24 ) )

Definition at line 38 of file AbstractInterface.h.

◆ make_short

#define make_short (   lowbyte,
  highbyte 
)    ( (unsigned short)lowbyte | ( (unsigned short)highbyte << 8 ) )

Definition at line 36 of file AbstractInterface.h.

◆ make_signed_short

#define make_signed_short (   lowbyte,
  highbyte 
)    ( (signed short) ( (unsigned short) lowbyte | ( (unsigned short) highbyte << 8 ) ) )

Definition at line 37 of file AbstractInterface.h.

◆ MSG_PREAMBLE_BYTE

#define MSG_PREAMBLE_BYTE   0xaa

Definition at line 32 of file AbstractInterface.h.

◆ MSG_PREAMBLE_LEN

#define MSG_PREAMBLE_LEN   3

Definition at line 33 of file AbstractInterface.h.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  strm,
const AbstractInterface a 
)

Definition at line 326 of file AbstractInterface.cpp.

+ Here is the call graph for this function: