Function caerPolarityEventPacketGetEventConst

Function Documentation

static inline caerPolarityEventConst caerPolarityEventPacketGetEventConst(caerPolarityEventPacketConst packet, int32_t n)

Get the polarity event at the given index from the event packet. This is a read-only event, do not change its contents in any way!

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 read-only polarity event. NULL on error.