include/events/common.h
static inline void caerEventPacketHeaderSetEventTSOverflow(caerEventPacketHeader header, int32_t eventTSOverflow) {
	if (eventTSOverflow < 0) {
		// Negative numbers (bit 31 set) are not allowed!
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventTSOverflow() with negative value!");
#endif
		return;
	}

	header->eventTSOverflow = htole32(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).
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventTSOverflow the packet-level timestamp overflow counter, in microseconds.
 */
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).

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventTSOverflow the packet-level timestamp overflow counter, in microseconds.
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 ) . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventTSOverflow the packet - level timestamp overflow counter in microseconds .
static inline void caerEventPacketHeaderSetEventTSOverflow(caerEventPacketHeader header, int32_t eventTSOverflow) {
	if (eventTSOverflow < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventTSOverflow() with negative value!");
#endif
		return;
	}
	header->eventTSOverflow = htole32(eventTSOverflow);
}
static inline void caerEventPacketHeaderSetEventTSOverflow ( caerEventPacketHeader header , int32_t eventTSOverflow ) { if ( eventTSOverflow < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventTSOverflow = htole32 ( eventTSOverflow ) ; }
Set the 32 bit timestamp overflow counter (in microseconds).
Set the 32 bit timestamp overflow counter ( in microseconds ) .
// Negative numbers (bit 31 set) are not allowed!