Function caerSpikeEventPacketFromPacketHeaderConst

Function Documentation

static inline caerSpikeEventPacketConst caerSpikeEventPacketFromPacketHeaderConst(caerEventPacketHeaderConst header)

Transform a generic read-only event packet header into a read-only 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 read-only event packet header pointer. Cannot be NULL.

Returns:

a properly converted, read-only typed event packet pointer.