RTEMS Logo

RTEMS 4.9.2 On-Line Library


Event Manager Building an Event Set or Condition

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

11.2.2: Building an Event Set or Condition

An event set or condition is built by a bitwise OR of the desired events. The set of valid events is RTEMS.EVENT_0 through RTEMS.EVENT_31. If an event is not explicitly specified in the set or condition, then it is not present. Events are specifically designed to be mutually exclusive, therefore bitwise OR and addition operations are equivalent as long as each event appears exactly once in the event set list.

For example, when sending the event set consisting of RTEMS.EVENT_6, RTEMS.EVENT_15, and RTEMS.EVENT_31, the event parameter to the rtems.event_send directive should be RTEMS.EVENT_6 or RTEMS.EVENT_15 or RTEMS.EVENT_31.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2008 OAR Corporation