Function caerEventPacketContainerFindEventPacketByType

Function Documentation

static inline caerEventPacketHeader caerEventPacketContainerFindEventPacketByType(caerEventPacketContainerConst container, int16_t typeID)

Get the pointer to an EventPacket stored in this container with the given event type. This returns the first found event packet with that type ID, or NULL if we get to the end without finding any such event packet.

Parameters:
  • container – a valid EventPacketContainer handle. If NULL, returns NULL too.

  • typeID – the event type to search for.

Returns:

a pointer to an EventPacket with a certain type or NULL if none found.