38#include "freertos-config.h"
40#ifndef EVENT_GROUPS_HPP_
41#define EVENT_GROUPS_HPP_
50#ifndef CPP_FREERTOS_NO_EXCEPTIONS
54#ifdef CPP_FREERTOS_NO_CPP_STRINGS
55#error "FreeRTOS-Addons require C++ Strings if you are using exceptions"
59#include "event_groups.h"
65#ifndef CPP_FREERTOS_NO_EXCEPTIONS
77 sprintf(errorString,
"Event Group Constructor Failed");
85 snprintf(errorString,
sizeof(errorString),
86 "Event Group Constructor Failed %s", info);
93 virtual const char *
what()
const throw()
102 char errorString[80];
124#if( configSUPPORT_STATIC_ALLOCATION == 1 )
128 EventGroup(StaticEventGroup_t *pxEventGroupBuffer);
152 EventBits_t
Sync(
const EventBits_t uxBitsToSet,
153 const EventBits_t uxBitsToWaitFor,
154 TickType_t xTicksToWait);
207 EventBits_t
WaitBits(
const EventBits_t uxBitsToWaitFor,
209 bool xWaitForAllBits,
210 TickType_t xTicksToWait);
221 EventBits_t
ClearBits(
const EventBits_t uxBitsToClear);
261 EventBits_t
SetBits(
const EventBits_t uxBitsToSet);
264 #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) )
284 BaseType_t *pxHigherPriorityTaskWoken);
Definition: event_groups.hpp:69
EventGroupCreateException(const char *info)
Definition: event_groups.hpp:83
EventGroupCreateException()
Definition: event_groups.hpp:75
virtual const char * what() const
Definition: event_groups.hpp:93
Definition: event_groups.hpp:110
EventBits_t GetBitsFromISR()
Definition: cevent_groups.cpp:128
EventBits_t GetBits()
Definition: cevent_groups.cpp:122
EventBits_t Sync(const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait)
Definition: cevent_groups.cpp:83
EventBits_t SetBits(const EventBits_t uxBitsToSet)
Definition: cevent_groups.cpp:134
EventBits_t ClearBits(const EventBits_t uxBitsToClear)
Definition: cevent_groups.cpp:110
EventGroup()
Definition: cevent_groups.cpp:44
BaseType_t ClearBitsFromISR(const EventBits_t uxBitsToClear)
Definition: cevent_groups.cpp:116
BaseType_t SetBitsFromISR(const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken)
Definition: cevent_groups.cpp:142
EventGroupHandle_t handle
Definition: event_groups.hpp:303
EventBits_t WaitBits(const EventBits_t uxBitsToWaitFor, bool xClearOnExit, bool xWaitForAllBits, TickType_t xTicksToWait)
Definition: cevent_groups.cpp:96
virtual ~EventGroup()
Definition: cevent_groups.cpp:77
Definition: condition_variable.hpp:57