|
Page date Fri Feb 25 13:06:54 2011 . | Improve this page |
OSEventFlags
The class OSEventFlags requires the definition of OS_INCLUDE_OSEVENTFLAGS.
Description
Initialize the internal members.
Parameters
:* none
Description
Set bits and send an internally identified event. Return the new flags.
Parameters
:* bits - input, the mask of flags which must be set
Return value
:* the new flags
Description
Return the current flags value.
Parameters
:* none
Return value
:* the current flags value
Description
Clear the given flags.
Parameters
:* bits - input, the flags which must be cleared
Return value
:* the new flags
== OSReturn_t wait(OSEventFlagsBits_t bits, bool isStrict = true) == Description
Loop until one the requested bits are set. If isStrict is true all the requested bits must be set, in order to return. If isStrict is false just one of the requested bits must be set, in order to return. If any flag is already set, return immediately (with code OSReturn::OS_IMMEDIATELY). For timeouts please set timers to send events; this function will return the timer event.
Parameters
:* bits - input, the mask of bits which is waiting for
:* isStrict - input, specifies is all bits or just one bit must be waited for
Return value
:* OSReturn::OS_IMMEDIATELY - code returned if any flag is already set
:* OSReturn::OS_OK - code returned if the requested bits were set
Description
Return the event used for notification.
Parameters
:* none
Return value
:* the event used for notification