Macros | Functions
protocolhandler.cpp File Reference
#include "protocolhandler.h"
#include <xstypes/xsmessage.h>
#include <xstypes/xsresultvalue.h>
#include <iomanip>
#include <sstream>
#include <algorithm>
Include dependency graph for protocolhandler.cpp:

Go to the source code of this file.

Macros

#define DUMP_BUFFER_ON_ERROR   512
 

Functions

std::string dumpBuffer (const uint8_t *buff, XsSize sz)
 Write the contents of a uint8 buffer to string as hex characters. More...
 
static int expectedMessageSize (const unsigned char *buffer, int sz)
 Compute the expected message size given a possibly incomplete message. More...
 

Macro Definition Documentation

◆ DUMP_BUFFER_ON_ERROR

#define DUMP_BUFFER_ON_ERROR   512

Definition at line 69 of file protocolhandler.cpp.

Function Documentation

◆ dumpBuffer()

std::string dumpBuffer ( const uint8_t *  buff,
XsSize  sz 
)
inline

Write the contents of a uint8 buffer to string as hex characters.

Definition at line 116 of file protocolhandler.cpp.

◆ expectedMessageSize()

static int expectedMessageSize ( const unsigned char *  buffer,
int  sz 
)
static

Compute the expected message size given a possibly incomplete message.

When analyzing a message with incomplete size information, the function will return the minimum size of the message given the information that is available

Definition at line 98 of file protocolhandler.cpp.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21