Communication: Add LogDataMessage

This commit is contained in:
Keith Nash
2025-05-16 19:36:27 +00:00
committed by Kyle Schwarz
parent b94ade1ef6
commit b3d47f2ae5
10 changed files with 63 additions and 0 deletions
+1
View File
@@ -38,6 +38,7 @@ enum class Command : uint8_t {
FlexRayControl = 0xF3,
CoreMiniPreload = 0xF4, // Previously known as RED_CMD_COREMINI_PRELOAD
PHYControlRegisters = 0xEF,
EnableLogData = 0xF6,
};
enum class ExtendedCommand : uint16_t {
@@ -0,0 +1,26 @@
#ifndef __LOGDATAMESSAGE_H_
#define __LOGDATAMESSAGE_H_
#ifdef __cplusplus
#include "icsneo/communication/message/message.h"
#include <cstdint>
#include <memory>
namespace icsneo {
class LogDataMessage : public RawMessage {
public:
static std::shared_ptr<LogDataMessage> DecodeToMessage(const std::vector<uint8_t>& bytestream);
LogDataMessage(std::wstring logDataString) :
RawMessage(Message::Type::LogData, Network::NetID::Data_To_Host), logMessage(logDataString) {}
std::wstring logMessage;
};
}
#endif // __cplusplus
#endif
@@ -44,6 +44,7 @@ public:
AppError = 0x8012,
GPTPStatus = 0x8013,
EthernetStatus = 0x8014,
LogData = 0x8015,
};
Message(Type t) : type(t) {}
+1
View File
@@ -583,6 +583,7 @@ public:
case NetID::RED_GET_RTC:
case NetID::DiskData:
case NetID::RED_App_Error:
case NetID::Data_To_Host:
return Type::Internal;
case NetID::Invalid:
case NetID::Any: