Function caerEventPacketHeaderSetEventTSOffset

Function Documentation

static inline void caerEventPacketHeaderSetEventTSOffset(caerEventPacketHeader header, int32_t eventTSOffset)

Set the offset, in bytes, to where the field with the main 32 bit timestamp is stored. This is useful for generic access to the timestamp field, given that different event types might have it at different offsets or might even have multiple timestamps, in which case this offset references the ‘main’ timestamp, the most representative one.

Parameters:
  • header – a valid EventPacket header pointer. Cannot be NULL.

  • eventTSOffset – the event timestamp offset in bytes.