Function caerSpecialEventPacketFromPacketHeader

Function Documentation

static inline caerSpecialEventPacket caerSpecialEventPacketFromPacketHeader(caerEventPacketHeader header)

Transform a generic event packet header into a Special 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.