Skip to content

Commit

Permalink
more fields to datablock (#21)
Browse files Browse the repository at this point in the history
* added equipmentId

* added some constants for undefined fields
  • Loading branch information
sy-c authored and awegrzyn committed Jan 17, 2019
1 parent 810f673 commit f143763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/Common/DataBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit f143763

Please sign in to comment.