Function caerSpecialEventPacketFindEventByType

Function Documentation

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

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

  • type – the special event type to search for.

Returns:

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