Function caerPolarityEventPacketGetEvent

Function Documentation

static inline caerPolarityEvent caerPolarityEventPacketGetEvent(caerPolarityEventPacket packet, int32_t n)

Get the polarity event at the given index from the event packet.

Parameters:
  • packet – a valid PolarityEventPacket pointer. Cannot be NULL.

  • n – the index of the returned event. Must be within [0,eventCapacity[ bounds.

Returns:

the requested polarity event. NULL on error.