28#include "rtos/Kernel.h"
29#include "rtos/mbed_rtos_types.h"
30#include "rtos/internal/mbed_rtos1_types.h"
31#include "rtos/internal/mbed_rtos_storage.h"
33#include "platform/NonCopyable.h"
75 uint32_t
set(uint32_t flags);
83 uint32_t
clear(uint32_t flags = 0x7fffffff);
100 uint32_t
wait_all(uint32_t flags = 0, uint32_t millisec = osWaitForever,
bool clear =
true);
130 uint32_t
wait_any(uint32_t flags = 0, uint32_t millisec = osWaitForever,
bool clear =
true);
159 void constructor(
const char *name =
nullptr);
160 uint32_t wait_for(uint32_t flags, uint32_t opt, Kernel::Clock::duration_u32 rel_time,
bool clear);
161 uint32_t wait_until(uint32_t flags, uint32_t opt, Kernel::Clock::time_point abs_time,
bool clear);
164 osEventFlagsId_t _id;
165 mbed_rtos_storage_event_flags_t _obj_mem;
Prevents generation of copy constructor and copy assignment operator in derived classes.
The EventFlags class is used to control event flags or wait for event flags other threads control.
EventFlags()
Create and initialize an EventFlags object.
uint32_t get() const
Get the currently set event flags.
uint32_t wait_any(uint32_t flags=0, uint32_t millisec=osWaitForever, bool clear=true)
Wait for any of the specified event flags to become signaled.
uint32_t wait_all_until(uint32_t flags, Kernel::Clock::time_point abs_time, bool clear=true)
Wait for all of the specified event flags to become signaled.
~EventFlags()
EventFlags destructor.
uint32_t wait_any_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, bool clear=true)
Wait for any of the specified event flags to become signaled.
EventFlags(const char *name)
Create and initialize an EventFlags object.
uint32_t wait_all_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, bool clear=true)
Wait for all of the specified event flags to become signaled.
uint32_t set(uint32_t flags)
Set the specified event flags.
uint32_t wait_any_until(uint32_t flags, Kernel::Clock::time_point abs_time, bool clear=true)
Wait for any of the specified event flags to become signaled.
uint32_t wait_all(uint32_t flags=0, uint32_t millisec=osWaitForever, bool clear=true)
Wait for all of the specified event flags to become signaled.
uint32_t clear(uint32_t flags=0x7fffffff)
Clear the specified event flags.