From f14376342110f607f955acbf6d9292cc18718e67 Mon Sep 17 00:00:00 2001 From: sy-c Date: Thu, 17 Jan 2019 15:35:37 +0100 Subject: [PATCH] more fields to datablock (#21) * added equipmentId * added some constants for undefined fields --- include/Common/DataBlock.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/Common/DataBlock.h b/include/Common/DataBlock.h index 6aca0f2..c6bcdd0 100644 --- a/include/Common/DataBlock.h +++ b/include/Common/DataBlock.h @@ -37,8 +37,11 @@ typedef struct { uint32_t dataSize; ///< data size following this structure (until next header, if this is not a toplevel block header) DataBlockId id; ///< id of the block (monotonic increasing sequence) uint32_t linkId; ///< id of link + uint16_t equipmentId; ///< id of equipment generating the data } DataBlockHeaderBase; +const uint32_t undefinedLinkId=0; ///< default value, when linkId undefined +const uint16_t undefinedEquipmentId=0; ///< default value, when equipmentId undefined /// Add extra types below, e.g. ///