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

◆ SEND_SHUTDOWN_ACK

#define SEND_SHUTDOWN_ACK (   _mod,
  _type,
  _id 
)

#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; \
event->data.id = _id; \
APP_EVENT_SUBMIT(event)

Macro used to submit a shutdown event.

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