include/events/polarity.h
static inline void caerPolarityEventSetTimestamp(caerPolarityEvent event, int32_t timestamp) {
	if (timestamp < 0) {
		// Negative means using the 31st bit!
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "Polarity Event", "Called caerPolarityEventSetTimestamp() with negative value!");
#endif
		return;
	}

	event->timestamp = htole32(timestamp);
}
/**
 * Set the 32bit event timestamp, the value has to be in microseconds.
 *
 * @param event a valid PolarityEvent pointer. Cannot be NULL.
 * @param timestamp a positive 32bit microsecond timestamp.
 */
Set the 32bit event timestamp, the value has to be in microseconds.
@param event a valid PolarityEvent pointer. Cannot be NULL.
@param timestamp a positive 32bit microsecond timestamp.
Set the 32bit event timestamp the value has to be in microseconds . @param event a valid PolarityEvent pointer . Cannot be NULL . @param timestamp a positive 32bit microsecond timestamp .
static inline void caerPolarityEventSetTimestamp(caerPolarityEvent event, int32_t timestamp) {
	if (timestamp < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "Polarity Event", "Called caerPolarityEventSetTimestamp() with negative value!");
#endif
		return;
	}
	event->timestamp = htole32(timestamp);
}
static inline void caerPolarityEventSetTimestamp ( caerPolarityEvent event , int32_t timestamp ) { if ( timestamp < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } event -> timestamp = htole32 ( timestamp ) ; }
Set the 32bit event timestamp, the value has to be in microseconds.
Set the 32bit event timestamp the value has to be in microseconds .
// Negative means using the 31st bit!