Function caerSpecialEventPacketFindEventByTypeConst

Function Documentation

static inline caerSpecialEventConst caerSpecialEventPacketFindEventByTypeConst(caerSpecialEventPacketConst packet, uint8_t type)

Get the first special event with the given event type in this event packet. This returns the first found event with that type ID, or NULL if we get to the end without finding any such event. The returned event is read-only!

Parameters:
  • packet – a valid SpecialEventPacket pointer. Cannot be NULL.

  • type – the special event type to search for.

Returns:

the requested read-only special event or NULL on error/not found.