35#pragma clang diagnostic ignored "-Wc++98-compat"
53 assert(port::interrupts::is_priority_valid ());
59 if (oflags !=
nullptr)
61 *oflags = flags_mask_;
64#pragma GCC diagnostic push
66#pragma clang diagnostic ignored "-Wdeprecated-volatile"
69#pragma GCC diagnostic pop
85 if (oflags !=
nullptr)
87 *oflags = flags_mask_;
102 if (oflags !=
nullptr)
104 *oflags = (flags_mask_ &
mask);
109#pragma GCC diagnostic push
110#if defined(__clang__)
111#pragma clang diagnostic ignored "-Wdeprecated-volatile"
114 flags_mask_ &= ~mask;
115#pragma GCC diagnostic pop
138 ret = flags_mask_ &
mask;
141#pragma GCC diagnostic push
142#if defined(__clang__)
143#pragma clang diagnostic ignored "-Wdeprecated-volatile"
146 flags_mask_ &= ~mask;
147#pragma GCC diagnostic pop
166 if (oflags !=
nullptr)
168 *oflags = flags_mask_;
171#pragma GCC diagnostic push
172#if defined(__clang__)
173#pragma clang diagnostic ignored "-Wdeprecated-volatile"
176 flags_mask_ &= ~mask;
177#pragma GCC diagnostic pop
result_t raise(flags::mask_t mask, flags::mask_t *oflags)
Raise event flags.
flags::mask_t get(flags::mask_t mask, flags::mode_t mode)
Get (and possibly clear) event flags.
bool check_raised(flags::mask_t mask, flags::mask_t *oflags, flags::mode_t mode)
Check if expected flags are raised.
result_t clear(flags::mask_t mask, flags::mask_t *oflags)
Clear event flags.
flags::mask_t mask(void)
Get the flags mask.
Interrupts critical section RAII helper.
@ all
Return when all flags are set.
@ clear
Ask for flags to be cleared after read.
@ any
Return when at least one flag is set.
@ any
Special mask to represent any flag.
uint32_t mode_t
Type of variables holding flags modes.
uint32_t mask_t
Type of variables holding flags masks.
@ ok
Function completed; no errors or events occurred.
uint32_t result_t
Type of values returned by RTOS functions.
#define os_assert_err(__e, __er)
Assert or return an error.
Single file µOS++ RTOS definitions.