Function caerPolarityEventPacketAllocate

Function Documentation

static inline caerPolarityEventPacket caerPolarityEventPacketAllocate(int32_t eventCapacity, int16_t eventSource, int32_t tsOverflow)

Allocate a new polarity events packet. Use free() to reclaim this memory.

Parameters:
  • eventCapacity – the maximum number of events this packet will hold.

  • eventSource – the unique ID representing the source/generator of this packet.

  • tsOverflow – the current timestamp overflow counter value for this packet.

Returns:

a valid PolarityEventPacket handle or NULL on error.