Function caerEventPacketHeaderSetEventTSOverflow

Function Documentation

static inline void caerEventPacketHeaderSetEventTSOverflow(caerEventPacketHeader header, int32_t eventTSOverflow)

Set the 32 bit timestamp overflow counter (in microseconds). This is per-packet and is used to generate a 64 bit timestamp that never wraps around. Since timestamps wrap around after some time, being only 31 bit (32 bit signed int), another timestamp at the packet level provides another 31 bit (32 bit signed int), to enable the generation of a 62 bit (64 bit signed int) microsecond timestamp which is guaranteed to never wrap around (in the next 146’138 years at least).

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

  • eventTSOverflow – the packet-level timestamp overflow counter, in microseconds.