nRF Connect SDK API 0.1.0
|
#define APP_EVENT_TYPE_DEFINE | ( | ename, | |
log_fn, | |||
ev_info_struct, | |||
app_event_type_flags | |||
) | _APP_EVENT_TYPE_DEFINE(ename, log_fn, ev_info_struct, app_event_type_flags) |
#include <include/app_event_manager.h>
Define an event type.
This macro defines an event type. In addition, it defines functions specific to the event type and the event type structure.
For every defined event, the following functions are created, where event_type is replaced with the given event type name ename
(for example, button_event):
ename | Name of the event. |
log_fn | Function to stringify an event of this type. |
ev_info_struct | Data structure describing the event type. |
app_event_type_flags | Event type flags. You should use APP_EVENT_FLAGS_CREATE to define them. |