Function caerIMU9EventPacketAllocate

Function Documentation

static inline caerIMU9EventPacket caerIMU9EventPacketAllocate(int32_t eventCapacity, int16_t eventSource, int32_t tsOverflow)

Allocate a new IMU 9-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 IMU9EventPacket handle or NULL on error.