Go to the documentation of this file.
65 #ifndef SIMPLEPROTOCOLMANAGER_H
66 #define SIMPLEPROTOCOLMANAGER_H
96 return msg.isChecksumOk();
MessageLocation findMessage(XsProtocolType &type, const XsByteArray &raw) override
Will let all supported protocols attempt finding a raw message in the given raw data.
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.
XsMessage convertToMessage(XsProtocolType &type, MessageLocation &location, const XsByteArray &raw) override
Converts raw data using location into a XsMessage object.
Interface class for protocol manager.
Structure for storing a single message.
XsProtocolType
Protocol types (XsDevice::enableProtocol())
ProtocolHandler m_protocolHandler
Standard protocol handler; used for finding messages.
bool validateMessage(XsMessage const &msg) const override
Performs a sanity check on the given message.
A very basic protocol manager.
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.