Function caerPolarityEventPacketFromPacketHeader

Function Documentation

static inline caerPolarityEventPacket caerPolarityEventPacketFromPacketHeader(caerEventPacketHeader header)

Transform a generic event packet header into a Polarity event packet. This takes care of proper casting and checks that the packet type really matches the intended conversion type.

Parameters:

header – a valid event packet header pointer. Cannot be NULL.

Returns:

a properly converted, typed event packet pointer.