Function caerSpecialEventPacketFindValidEventByTypeConst

Function Documentation

static inline caerSpecialEventConst caerSpecialEventPacketFindValidEventByTypeConst(caerSpecialEventPacketConst packet, uint8_t type)

Get the first valid special event with the given event type in this event packet. This returns the first found valid 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 valid special event or NULL on error/not found.