ChibiOS/RT  5.1.0
chevents.c File Reference

Events code. More...

#include "ch.h"

Go to the source code of this file.

Functions

void chEvtRegisterMaskWithFlags (event_source_t *esp, event_listener_t *elp, eventmask_t events, eventflags_t wflags)
 Registers an Event Listener on an Event Source. More...
 
void chEvtUnregister (event_source_t *esp, event_listener_t *elp)
 Unregisters an Event Listener from its Event Source. More...
 
eventmask_t chEvtGetAndClearEventsI (eventmask_t events)
 Clears the pending events specified in the events mask. More...
 
eventmask_t chEvtGetAndClearEvents (eventmask_t events)
 Clears the pending events specified in the events mask. More...
 
eventmask_t chEvtAddEvents (eventmask_t events)
 Adds (OR) a set of events to the current thread, this is much faster than using chEvtBroadcast() or chEvtSignal(). More...
 
void chEvtBroadcastFlagsI (event_source_t *esp, eventflags_t flags)
 Signals all the Event Listeners registered on the specified Event Source. More...
 
eventflags_t chEvtGetAndClearFlags (event_listener_t *elp)
 Returns the flags associated to an event_listener_t. More...
 
void chEvtSignal (thread_t *tp, eventmask_t events)
 Adds a set of event flags directly to the specified thread_t. More...
 
void chEvtSignalI (thread_t *tp, eventmask_t events)
 Adds a set of event flags directly to the specified thread_t. More...
 
void chEvtBroadcastFlags (event_source_t *esp, eventflags_t flags)
 Signals all the Event Listeners registered on the specified Event Source. More...
 
eventflags_t chEvtGetAndClearFlagsI (event_listener_t *elp)
 Returns the unmasked flags associated to an event_listener_t. More...
 
void chEvtDispatch (const evhandler_t *handlers, eventmask_t events)
 Invokes the event handlers associated to an event flags mask. More...
 
eventmask_t chEvtWaitOne (eventmask_t events)
 Waits for exactly one of the specified events. More...
 
eventmask_t chEvtWaitAny (eventmask_t events)
 Waits for any of the specified events. More...
 
eventmask_t chEvtWaitAll (eventmask_t events)
 Waits for all the specified events. More...
 
eventmask_t chEvtWaitOneTimeout (eventmask_t events, sysinterval_t timeout)
 Waits for exactly one of the specified events. More...
 
eventmask_t chEvtWaitAnyTimeout (eventmask_t events, sysinterval_t timeout)
 Waits for any of the specified events. More...
 
eventmask_t chEvtWaitAllTimeout (eventmask_t events, sysinterval_t timeout)
 Waits for all the specified events. More...
 

Detailed Description

Events code.

Definition in file chevents.c.