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

◆ MODULE_ID

#define MODULE_ID ( mname)

#include <include/caf/events/module_state_event.h>

Value:
({ \
MODULE_ID_PTR_VAR_EXTERN_DEC(mname); \
&MODULE_ID_PTR_VAR(mname); \
})
#define MODULE_ID_PTR_VAR(mname)
Definition module_state_event.h:28

Get module ID.

For example, the MODULE_ID(buttons) can be used to get module ID of module named buttons.

Parameters
[in]mnameName of the module.
Returns
ID of the module.