unsigned ctl_events_wait_uc(CTL_EVENT_WAIT_TYPE_t waitType, CTL_EVENT_SET_t *eventSet, CTL_EVENT_SET_t events);
ctl_events_wait_uc unconditionally waits for events to be set (value 1) in the event set pointed to by eventSet.
The waitType can be one of:
ctl_events_wait_uc returns the value pointed to by eventSet before any auto-clearing occurred.
ctl_events_wait_uc must not be called from an interrupt service routine.