Function caerIMU6EventPacketAllocate

Function Documentation

static inline caerIMU6EventPacket caerIMU6EventPacketAllocate(int32_t eventCapacity, int16_t eventSource, int32_t tsOverflow)

Allocate a new IMU 6-axes events packet. Use free() to reclaim this memory.

Parameters:
  • eventCapacity – the maximum number of events this packet will hold.

  • eventSource – the unique ID representing the source/generator of this packet.

  • tsOverflow – the current timestamp overflow counter value for this packet.

Returns:

a valid IMU6EventPacket handle or NULL on error.