nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ SEND_EVENT

#define SEND_EVENT ( _mod,
_type )

#include <applications/asset_tracker_v2/src/modules/modules_common.h>

Value:
struct _mod ## _module_event *event = new_ ## _mod ## _module_event(); \
__ASSERT(event, "Not enough heap left to allocate event"); \
event->type = _type; \
APP_EVENT_SUBMIT(event)

Macro used to submit an event.

Parameters
_modName of module that the event corresponds to.
_typeName of the type of event.