Function caerSpecialEventPacketFindValidEventByType

Function Documentation

static inline caerSpecialEvent caerSpecialEventPacketFindValidEventByType(caerSpecialEventPacket 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.

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

  • type – the special event type to search for.

Returns:

the requested valid special event or NULL on error/not found.