agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
event_type.h File Reference
#include <zrtos/types.h>
Include dependency graph for event_type.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZRTOS_EVENT_TYPE__ENUM(...)
 

Functions

bool zrtos_event_type__cmp (zrtos_event_type_t *a, zrtos_event_type_t *b)
 
bool zrtos_event_type__is_any (zrtos_event_type_t *thiz)
 

Macro Definition Documentation

◆ ZRTOS_EVENT_TYPE__ENUM

#define ZRTOS_EVENT_TYPE__ENUM (   ...)
Value:
typedef enum{\
ZRTOS_EVENT_TYPE__ANY = 0\
,__VA_ARGS__\
}zrtos_event_type_t;

Definition at line 25 of file event_type.h.

Function Documentation

◆ zrtos_event_type__cmp()

bool zrtos_event_type__cmp ( zrtos_event_type_t *  a,
zrtos_event_type_t *  b 
)

Definition at line 17 of file event_type.h.

17  {
18  return *a - *b;
19 }
Here is the caller graph for this function:

◆ zrtos_event_type__is_any()

bool zrtos_event_type__is_any ( zrtos_event_type_t *  thiz)

Definition at line 21 of file event_type.h.

21  {
22  return *thiz == ZRTOS_EVENT_TYPE__ANY;
23 }
Here is the caller graph for this function: