23 #ifndef ETCPAL_CPP_EVENT_GROUP_H_
24 #define ETCPAL_CPP_EVENT_GROUP_H_
27 #include "etcpal/event_group.h"
A wrapper class for the EtcPal event group type.
Definition: event_group.h:88
void ClearBits(EventBits bits_to_clear)
Clear one or more bits in an event group.
Definition: event_group.h:168
EventBits Wait(EventBits bits, int flags=0)
Wait for one or more bits in an event group.
Definition: event_group.h:129
EventGroup()
Create a new event group.
Definition: event_group.h:114
EventBits GetBitsFromIsr()
Get the current bitfield from an event group from an interrupt context.
Definition: event_group.h:190
void SetBitsFromIsr(EventBits bits_to_set)
Set one or more bits in an event group from an interrupt context.
Definition: event_group.h:180
void ClearBitsFromIsr(EventBits bits_to_clear)
Clear one or more bits in an event group from an interrupt context.
Definition: event_group.h:202
etcpal_event_group_t & get()
Get a reference to the underlying etcpal_event_group_t type.
Definition: event_group.h:208
void SetBits(EventBits bits_to_set)
Set one or more bits in an event group.
Definition: event_group.h:155
EventBits GetBits()
Get the current bitfield from an event group.
Definition: event_group.h:161
~EventGroup()
Destroy the event group.
Definition: event_group.h:120
EventBits TryWait(EventBits bits, int flags=0, int timeout_ms=0)
Wait for one or more bits in an event group until a timeout expires.
Definition: event_group.h:145
Common definitions used by EtcPal C++ wrappers.
etcpal_event_bits_t EventBits
The type that holds the event bitfield.
Definition: event_group.h:38
void etcpal_event_group_clear_bits_from_isr(etcpal_event_group_t *id, etcpal_event_bits_t bits_to_clear)
Clear one or more bits in an event group from an interrupt context.
etcpal_event_bits_t etcpal_event_group_wait(etcpal_event_group_t *id, etcpal_event_bits_t bits, int flags)
Wait for one or more bits in an event group.
void etcpal_event_group_set_bits_from_isr(etcpal_event_group_t *id, etcpal_event_bits_t bits_to_set)
Set one or more bits in an event group from an interrupt context.
void etcpal_event_group_destroy(etcpal_event_group_t *id)
Destroy an event group.
etcpal_event_bits_t etcpal_event_group_get_bits(etcpal_event_group_t *id)
Get the current bitfield from an event group.
PLATFORM_DEFINED etcpal_event_bits_t
The type that holds the event bitfield.
Definition: event_group.dox:104
bool etcpal_event_group_create(etcpal_event_group_t *id)
Create a new event group.
void etcpal_event_group_clear_bits(etcpal_event_group_t *id, etcpal_event_bits_t bits_to_clear)
Clear one or more bits in an event group.
void etcpal_event_group_set_bits(etcpal_event_group_t *id, etcpal_event_bits_t bits_to_set)
Set one or more bits in an event group.
PLATFORM_DEFINED etcpal_event_group_t
The event group identifier.
Definition: event_group.dox:95
etcpal_event_bits_t etcpal_event_group_get_bits_from_isr(etcpal_event_group_t *id)
Get the current bitfield from an event group from an interrupt context.
etcpal_event_bits_t etcpal_event_group_timed_wait(etcpal_event_group_t *id, etcpal_event_bits_t bits, int flags, int timeout_ms)
Wait for one or more bits in an event group, giving up after a timeout.