Device: Implement version handling

This commit is contained in:
Paul Hollinsky
2021-05-05 02:17:38 -04:00
parent 8be3bbaee5
commit 595cc36545
12 changed files with 183 additions and 1 deletions
@@ -0,0 +1,21 @@
#ifndef __VERSIONPACKET_H__
#define __VERSIONPACKET_H__
#ifdef __cplusplus
#include "icsneo/communication/message/versionmessage.h"
#include <cstdint>
#include <memory>
namespace icsneo {
struct HardwareVersionPacket {
static std::shared_ptr<VersionMessage> DecodeMainToMessage(const std::vector<uint8_t>& bytestream);
static std::shared_ptr<VersionMessage> DecodeSecondaryToMessage(const std::vector<uint8_t>& bytestream);
};
}
#endif // __cplusplus
#endif