Function caerSpikeEventPacketFromPacketHeader
Defined in File spike.h
Function Documentation
-
static inline caerSpikeEventPacket caerSpikeEventPacketFromPacketHeader(caerEventPacketHeader header)
Transform a generic event packet header into a Spike 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.