include/events/polarity.h
static inline void caerPolarityEventInvalidate(caerPolarityEvent event, caerPolarityEventPacket packet) {
	if (caerPolarityEventIsValid(event)) {
		CLEAR_NUMBITS32(event->data, VALID_MARK_SHIFT, VALID_MARK_MASK);

		// Also decrease number of valid events. Number of total events doesn't change.
		// Only call this on valid events!
		caerEventPacketHeaderSetEventValid(&packet->packetHeader,
			caerEventPacketHeaderGetEventValid(&packet->packetHeader) - 1);
	}
	else {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "Polarity Event", "Called caerPolarityEventInvalidate() on already invalid event.");
#endif
	}
}
/**
 * Invalidate the current event by setting its valid bit
 * to false and decreasing the number of valid events held
 * in the packet. Only works with events that are already
 * valid!
 *
 * @param event a valid PolarityEvent pointer. Cannot be NULL.
 * @param packet the PolarityEventPacket pointer for the packet containing this event. Cannot be NULL.
 */
Invalidate the current event by setting its valid bit
to false and decreasing the number of valid events held
in the packet. Only works with events that are already
valid!

@param event a valid PolarityEvent pointer. Cannot be NULL.
@param packet the PolarityEventPacket pointer for the packet containing this event. Cannot be NULL.
Invalidate the current event by setting its valid bit to false and decreasing the number of valid events held in the packet . Only works with events that are already valid! @param event a valid PolarityEvent pointer . Cannot be NULL . @param packet the PolarityEventPacket pointer for the packet containing this event . Cannot be NULL .
static inline void caerPolarityEventInvalidate(caerPolarityEvent event, caerPolarityEventPacket packet) {
	if (caerPolarityEventIsValid(event)) {
		CLEAR_NUMBITS32(event->data, VALID_MARK_SHIFT, VALID_MARK_MASK);
		caerEventPacketHeaderSetEventValid(&packet->packetHeader,
			caerEventPacketHeaderGetEventValid(&packet->packetHeader) - 1);
	}
	else {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "Polarity Event", "Called caerPolarityEventInvalidate() on already invalid event.");
#endif
	}
}
static inline void caerPolarityEventInvalidate ( caerPolarityEvent event , caerPolarityEventPacket packet ) { if ( caerPolarityEventIsValid ( event ) ) { CLEAR_NUMBITS32 ( event -> data , VALID_MARK_SHIFT , VALID_MARK_MASK ) ; caerEventPacketHeaderSetEventValid ( & packet -> packetHeader , caerEventPacketHeaderGetEventValid ( & packet -> packetHeader ) - 1 ) ; } else { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif } }
Invalidate the current event by setting its valid bit
 to false and decreasing the number of valid events held
 in the packet.
Invalidate the current event by setting its valid bit to false and decreasing the number of valid events held in the packet .
// Also decrease number of valid events. Number of total events doesn't change. // Only call this on valid events!