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

Go to the source code of this file.

Data Structures

struct  _zrtos_event_t
 

Typedefs

typedef struct _zrtos_event_t zrtos_event_t
 

Functions

bool zrtos_event__init (zrtos_event_t *thiz, zrtos_event_type_t type, void *data)
 
zrtos_event_type_t zrtos_event__get_type (zrtos_event_t *thiz)
 
void * zrtos_event__get_data (zrtos_event_t *thiz)
 

Typedef Documentation

◆ zrtos_event_t

typedef struct _zrtos_event_t zrtos_event_t

Function Documentation

◆ zrtos_event__get_data()

void* zrtos_event__get_data ( zrtos_event_t thiz)

Definition at line 41 of file event.h.

43  {
44  return thiz->data;
45 }
void * data
Definition: event.h:21

◆ zrtos_event__get_type()

zrtos_event_type_t zrtos_event__get_type ( zrtos_event_t thiz)

Definition at line 35 of file event.h.

37  {
38  return thiz->type;
39 }
zrtos_event_type_t type
Definition: event.h:20

◆ zrtos_event__init()

bool zrtos_event__init ( zrtos_event_t thiz,
zrtos_event_type_t  type,
void *  data 
)

Definition at line 24 of file event.h.

28  {
29  thiz->type = type;
30  thiz->data = data;
31 
32  return true;
33 }
zrtos_event_type_t type
Definition: event.h:20
void * data
Definition: event.h:21
Here is the caller graph for this function: