|
RTOS Wrapper
API reference
|
Eager-init event-flag group with modern C++ public surface. More...
#include <OsEventFlags.h>
Public Member Functions | |
| OsEventFlags (const char *groupName) noexcept | |
| OsEventFlags (const OsEventFlags &)=delete | |
| OsEventFlags & | operator= (const OsEventFlags &)=delete |
| ~OsEventFlags () noexcept | |
| bool | IsValid () const noexcept |
| True if the underlying RTOS handle was created successfully. | |
| bool | Set (uint32_t bits) noexcept |
Set bits in the group. | |
| bool | Clear (uint32_t bits) noexcept |
Clear bits in the group. | |
| bool | Wait (uint32_t bits, WaitMode mode, uint32_t timeout_ms, uint32_t &actual_bits) noexcept |
Wait for bits to be set per mode, up to timeout_ms. | |
Static Private Member Functions | |
| static OS_Ulong | ToTicks (uint32_t timeout_ms) noexcept |
Private Attributes | |
| const char * | name_ |
| bool | created_ {false} |
| OS_EventGroup | group_ {} |
Eager-init event-flag group with modern C++ public surface.
| kReserved | Unused; kept for source compatibility. Pass anything. |
|
inlineexplicitnoexcept |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
Clear bits in the group.
|
inlinenoexcept |
True if the underlying RTOS handle was created successfully.
|
delete |
|
inlinenoexcept |
Set bits in the group.
|
inlinestaticprivatenoexcept |
|
inlinenoexcept |
Wait for bits to be set per mode, up to timeout_ms.
Bits are NOT cleared on return.
| [in] | bits | Bit mask to wait for. |
| [in] | mode | ANY or ALL semantics. |
| [in] | timeout_ms | Max wait in ms; pass UINT32_MAX to wait forever. |
| [out] | actual_bits | Bits seen at wake-time (for ANY mode caller can tell which fired). |
|
private |
|
private |
|
private |