Function caerEventPacketContainerFindEventPacketByTypeConst

Function Documentation

static inline caerEventPacketHeaderConst caerEventPacketContainerFindEventPacketByTypeConst(caerEventPacketContainerConst container, int16_t typeID)

Get the pointer to a read-only 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 a read-only EventPacket with a certain type or NULL if none found.