Function caerEventPacketHeaderGetEventTSOffset

Function Documentation

static inline int32_t caerEventPacketHeaderGetEventTSOffset(caerEventPacketHeaderConst header)

Get 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.

Returns:

the event timestamp offset in bytes.