Go to the documentation of this file.
65 #ifndef PROTOCOLHANDLER_H
66 #define PROTOCOLHANDLER_H
82 int type()
const override;
XsMessage convertToMessage(MessageLocation &location, const XsByteArray &raw) const override
Converts raw data using location into a XsMessage object.
A list of uint8_t values.
Message protocol handling class.
virtual ~ProtocolHandler()
Destructor.
int maximumMessageSize() const override
Returns the maximum size of a valid message of this protocol including preambles and checksums.
XSENS_DISABLE_COPY(ProtocolHandler)
int type() const override
Returns the type of the protocol handler.
static int composeMessage(XsByteArray &raw, const XsMessage &msg)
Compose a message for transmission.
Interface class for protocol handlers.
Structure for storing a single message.
void ignoreMaximumMessageSize(bool ignore) override
Tells the protocol handler to ignore/expand its maximum message size.
XsProtocolType
Protocol types (XsDevice::enableProtocol())
ProtocolHandler()
Default constructor.
int minimumMessageSize() const override
Returns the minimum size of a valid message of this protocol including preambles and checksums.
Stores the location of a message in a buffer using a start position and a size.
MessageLocation findMessage(XsProtocolType &type, const XsByteArray &raw) const override
Find the first message in the raw byte stream.