xref: /btstack/test/embedded/event_groups.h (revision 108ce72e4df31fa770554f3f18cb540454243b40)
1*108ce72eSMatthias Ringwald 
2*108ce72eSMatthias Ringwald typedef int EventGroupHandle_t;
3*108ce72eSMatthias Ringwald typedef int EventBits_t;
4*108ce72eSMatthias Ringwald typedef int BaseType_t;
5*108ce72eSMatthias Ringwald typedef int TickType_t;
6*108ce72eSMatthias Ringwald 
7*108ce72eSMatthias Ringwald EventGroupHandle_t xEventGroupCreate( void );
8*108ce72eSMatthias Ringwald 
9*108ce72eSMatthias Ringwald EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
10*108ce72eSMatthias Ringwald                                  const EventBits_t uxBitsToSet );
11*108ce72eSMatthias Ringwald 
12*108ce72eSMatthias Ringwald BaseType_t xEventGroupSetBitsFromISR(
13*108ce72eSMatthias Ringwald                           EventGroupHandle_t xEventGroup,
14*108ce72eSMatthias Ringwald                           const EventBits_t uxBitsToSet,
15*108ce72eSMatthias Ringwald                           BaseType_t *pxHigherPriorityTaskWoken );
16*108ce72eSMatthias Ringwald 
17*108ce72eSMatthias Ringwald EventBits_t xEventGroupWaitBits(
18*108ce72eSMatthias Ringwald                        const EventGroupHandle_t xEventGroup,
19*108ce72eSMatthias Ringwald                        const EventBits_t uxBitsToWaitFor,
20*108ce72eSMatthias Ringwald                        const BaseType_t xClearOnExit,
21*108ce72eSMatthias Ringwald                        const BaseType_t xWaitForAllBits,
22*108ce72eSMatthias Ringwald                        TickType_t xTicksToWait );
23