Internal event flags implementation.
More...
#include <os-flags.h>
Internal event flags implementation.
Definition at line 63 of file os-flags.h.
◆ event_flags()
os::rtos::internal::event_flags::event_flags |
( |
| ) |
|
|
default |
Construct an internal event flags object instance.
◆ ~event_flags()
os::rtos::internal::event_flags::~event_flags |
( |
| ) |
|
|
default |
Destruct the internal event flags object instance.
◆ check_raised()
Check if expected flags are raised.
- Parameters
-
[in] | mask | The expected flags (OR-ed bit-mask); if flags::any , any flag raised will do it. |
[out] | oflags | Pointer where to store the current flags; may be nullptr . |
[in] | mode | Mode bits to select if either all or any flags in the mask are expected, and if the flags should be cleared. |
- Return values
-
true | The expected flags are raised. |
false | The expected flags are not raised. |
Definition at line 77 of file os-flags.cpp.
◆ clear()
Clear event flags.
- Parameters
-
[in] | mask | The OR-ed flags to clear. |
[out] | oflags | Optional pointer where to store the previous value of the flags; may be nullptr . |
- Return values
-
result::ok | The flags were cleared. |
EINVAL | The mask is zero. |
Definition at line 158 of file os-flags.cpp.
◆ get()
Get (and possibly clear) event flags.
- Parameters
-
[in] | mask | The OR-ed flags to get/clear; can be flags::any . |
[in] | mode | Mode bits to select if the flags should be cleared (the other bits are ignored). |
- Returns
- The selected bits from the flags mask.
Definition at line 124 of file os-flags.cpp.
◆ mask()
Get the flags mask.
- Returns
- The internal bit-mask.
Definition at line 208 of file os-flags.h.
◆ raise()
Raise event flags.
- Parameters
-
[in] | mask | The OR-ed flags to raise. |
[out] | oflags | Optional pointer where to store the new value of the flags; may be nullptr . |
- Return values
-
result::ok | The flags were raised. |
EINVAL | The mask is zero. |
ENOTRECOVERABLE | Raise failed. |
Definition at line 49 of file os-flags.cpp.
The documentation for this class was generated from the following files: