Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
EventFlags Class Reference
[Rtos]
The EventFlags class is used to signal or wait for an arbitrary event or events. More...
#include <EventFlags.h>
Inherits NonCopyable< EventFlags >.
Public Member Functions | |
EventFlags () | |
Create and Initialize a EventFlags object. | |
EventFlags (const char *name) | |
Create and Initialize a EventFlags object. | |
uint32_t | set (uint32_t flags) |
Set the specified Event Flags. | |
uint32_t | clear (uint32_t flags=0x7fffffff) |
Clear the specified Event Flags. | |
uint32_t | get () const |
Get the currently set Event Flags. | |
uint32_t | wait_all (uint32_t flags=0, uint32_t timeout=osWaitForever, bool clear=true) |
Wait for all of the specified event flags to become signaled. | |
uint32_t | wait_any (uint32_t flags=0, uint32_t timeout=osWaitForever, bool clear=true) |
Wait for any of the specified event flags to become signaled. |
Detailed Description
The EventFlags class is used to signal or wait for an arbitrary event or events.
- Note:
- EventFlags support 31 flags so the MSB flag is ignored, it is used to return an error code (osFlagsError)
- Memory considerations: The EventFlags control structures will be created on current thread's stack, both for the mbed OS and underlying RTOS objects (static or dynamic RTOS memory pools are not being used).
Definition at line 43 of file EventFlags.h.
Constructor & Destructor Documentation
EventFlags | ( | ) |
Create and Initialize a EventFlags object.
Definition at line 29 of file EventFlags.cpp.
Generated on Tue Jul 12 2022 20:03:34 by
