Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Cpp-Implementation/Infrastructure/DataType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef DATATYPE_H
#define DATATYPE_H

#include <cstdint>

enum DataType : uint8_t
{
Float32 = 0,
Int32 = 1,
Int16 = 2,
Int8 = 3,
Uint32 = 4,
Uint16 = 5,
Uint8 = 6,
Boolean = 7,
}

#endif
29 changes: 29 additions & 0 deletions Cpp-Implementation/Infrastructure/MessageType.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#ifndef MESSAGETYPE_H
#define MESSAGETYPE_H

#include <cstdint>

enum MessageType : uint8_t
{
NodeInfoReq = 0,
NodeInfoAnnouncement = 1,
InfoStatus = 10,
WarningStatus = 11,
ErrorStatus = 12,
TelemetryValueRegistration = 20,
ParameterRegistration = 21,
TelemetryGroupDefinition = 30,
TelemetryGroupUpdate = 31,
HeartbeatReq = 40,
HeartbeatRes = 41,
ParameterSetReq = 50,
ParameterSetConfirmation = 51,
ParameterSetLock = 52,
ParameterSetLockConfirmation = 53,
FieldGetReq = 60,
FieldGetRes = 61,
FieldIdLookupReq = 62,
FieldIdLookupRes = 63,
}

#endif
14 changes: 14 additions & 0 deletions Cpp-Implementation/Infrastructure/ParameterSetStatus.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef PARAMETERSETSTATUS_H
#define PARAMETERSETSTATUS_H

#include <cstdint>

enum ParameterSetStatus : uint8_t
{
Success = 0,
InvalidParameterId = 1,
ParameterLocked = 2,
NodeToNodeModification = 3,
}

#endif
5 changes: 5 additions & 0 deletions Cpp-Implementation/LiquidCan.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

#ifndef LIQUIDCAN_H
#define LIQUIDCAN_H

#endif //LIQUIDCAN_H
11 changes: 11 additions & 0 deletions Cpp-Implementation/Model/FieldGetReq.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef FIELDGETREQ_H
#define FIELDGETREQ_H

#include <cstdint>

struct FieldGetReq
{
uint8_t fieldId;
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/FieldGetRes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef FIELDGETRES_H
#define FIELDGETRES_H

#include <cstdint>

struct FieldGetRes
{
uint8_t fieldId;
uint8_t value[62];
}

#endif
11 changes: 11 additions & 0 deletions Cpp-Implementation/Model/FieldIdLookupReq.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef FIELDIDLOOKUPREQ_H
#define FIELDIDLOOKUPREQ_H

#include <cstdint>

struct FieldIdLookupReq
{
uint8_t fieldName[61];
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/FieldIdLookupRes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef FIELDIDLOOKUPRES_H
#define FIELDIDLOOKUPRES_H

#include <cstdint>

struct FieldIdLookupRes
{
uint8_t fieldId;
DataType fieldType;
}

#endif
13 changes: 13 additions & 0 deletions Cpp-Implementation/Model/FieldRegistration.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef FIELDREGISTRATION_H
#define FIELDREGISTRATION_H

#include <cstdint>

struct FieldRegistration
{
uint8_t fieldId;
uint8_t fieldType;
int8_t fieldName[61];
}

#endif
11 changes: 11 additions & 0 deletions Cpp-Implementation/Model/HeartBeat.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef HEARTBEAT_H
#define HEARTBEAT_H

#include <cstdint>

struct HeartBeat
{
uint32_t counter;
}

#endif
15 changes: 15 additions & 0 deletions Cpp-Implementation/Model/NodeInfoRes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#ifndef NODEINFORES_H
#define NODEINFORES_H

#include <cstdint>

struct NodeInfoRes
{
uint8_t telCnt;
uint8_t parCnt;
uint32_t firmwareHash;
uint32_t liquidHash;
int8_t deviceName[53];
}

#endif
13 changes: 13 additions & 0 deletions Cpp-Implementation/Model/ParameterSetConfirmation.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef PARAMETERSETCONFIRMATION_H
#define PARAMETERSETCONFIRMATION_H

#include <cstdint>

struct ParameterSetConfirmation
{
uint8_t parameterId;
ParameterSetStatus status;
uint8_t value[61];
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/ParameterSetLock.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef PARAMETERSETLOCK_H
#define PARAMETERSETLOCK_H

#include <cstdint>

struct ParameterSetLock
{
uint8_t parameterId;
uint8_t lockStatus;
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/ParameterSetReq.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef PARAMETERSETREQ_H
#define PARAMETERSETREQ_H

#include <cstdint>

struct ParameterSetReq
{
uint8_t parameterId;
uint8_t value[61];
}

#endif
11 changes: 11 additions & 0 deletions Cpp-Implementation/Model/Status.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#ifndef STATUS_H
#define STATUS_H

#include <cstdint>

struct Status
{
int8_t msg[63];
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/TelemetryGroupDefinition.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef TELEMETRYGROUPDEFINITION_H
#define TELEMETRYGROUPDEFINITION_H

#include <cstdint>

struct TelemetryGroupDefinition
{
uint8_t groupId;
uint8_t fieldIds[62];
}

#endif
12 changes: 12 additions & 0 deletions Cpp-Implementation/Model/TelemetryGroupUpdate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef TELEMETRYGROUPUPDATE_H
#define TELEMETRYGROUPUPDATE_H

#include <cstdint>

struct TelemetryGroupUpdate
{
uint8_t groupId;
uint8_t values[62];
}

#endif
Loading