Function caerIMU6EventPacketFromPacketHeader

Function Documentation

static inline caerIMU6EventPacket caerIMU6EventPacketFromPacketHeader(caerEventPacketHeader header)

Transform a generic event packet header into an IMU 6-axes 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.