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

	header->eventTSOffset = htole32(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.
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventTSOffset the event timestamp offset in bytes.
 */
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.

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventTSOffset the event timestamp offset in bytes.
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 . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventTSOffset the event timestamp offset in bytes .
static inline void caerEventPacketHeaderSetEventTSOffset(caerEventPacketHeader header, int32_t eventTSOffset) {
	if (eventTSOffset < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventTSOffset() with negative value!");
#endif
		return;
	}
	header->eventTSOffset = htole32(eventTSOffset);
}
static inline void caerEventPacketHeaderSetEventTSOffset ( caerEventPacketHeader header , int32_t eventTSOffset ) { if ( eventTSOffset < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventTSOffset = htole32 ( eventTSOffset ) ; }
Set the offset, in bytes, to where the field with the main
 32 bit timestamp is stored.
Set the offset in bytes to where the field with the main 32 bit timestamp is stored .
// Negative numbers (bit 31 set) are not allowed!