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

◆ IS_EVENT

#define IS_EVENT (   _ptr,
  _mod,
  _evt 
)

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

Value:
is_ ## _mod ## _module_event(&_ptr->module._mod.header) && \
_ptr->module._mod.type == _evt

Macro that checks if an event is of a certain type.

Parameters
_ptrName of module message struct variable.
_modName of module that the event corresponds to.
_evtName of the event.
Returns
true if the event matches the event checked for, otherwise false.