Function caerSpikeEventPacketGetEvent

Function Documentation

static inline caerSpikeEvent caerSpikeEventPacketGetEvent(caerSpikeEventPacket packet, int32_t n)

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

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

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

Returns:

the requested Spike event. NULL on error.