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

	header->eventType = htole16(eventType);
}
/**
 * Set the numerical event type ID, representing the event type this
 * EventPacket will contain.
 * All event types below 100 are reserved for use by libcaer and cAER.
 * DO NOT USE THEM FOR YOUR OWN EVENT TYPES!
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventType the numerical event type (see 'enum caer_default_event_types').
 */
Set the numerical event type ID, representing the event type this
EventPacket will contain.
All event types below 100 are reserved for use by libcaer and cAER.
DO NOT USE THEM FOR YOUR OWN EVENT TYPES!

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventType the numerical event type .
Set the numerical event type ID representing the event type this EventPacket will contain . All event types below 100 are reserved for use by libcaer and cAER . DO NOT USE THEM FOR YOUR OWN EVENT TYPES! @param header a valid EventPacket header pointer . Cannot be NULL . @param eventType the numerical event type .
static inline void caerEventPacketHeaderSetEventType(caerEventPacketHeader header, int16_t eventType) {
	if (eventType < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventType() with negative value!");
#endif
		return;
	}
	header->eventType = htole16(eventType);
}
static inline void caerEventPacketHeaderSetEventType ( caerEventPacketHeader header , int16_t eventType ) { if ( eventType < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventType = htole16 ( eventType ) ; }
Set the numerical event type ID, representing the event type this
 EventPacket will contain.
Set the numerical event type ID representing the event type this EventPacket will contain .
// Negative numbers (bit 31 set) are not allowed!