nRF5 SDK v15.2.0
Macros
Asynchronous Supervisor handler functions

Macros to create Asynchronous Supervisor interface handler functions. More...

Macros

#define NRF_SVCI_ASYNC_HANDLER_CREATE(svci_num,name,param_type,state_type)
 Macro for creating a registration for an async handler for the SVCI interface. More...
 

Detailed Description

Macros to create Asynchronous Supervisor interface handler functions.

Macro Definition Documentation

#define NRF_SVCI_ASYNC_HANDLER_CREATE (   svci_num,
  name,
  param_type,
  state_type 
)
Value:
\
static uint32_t name ## _handler(name ## _svci_async_t * p_async); \
static uint32_t name ## _on_call(param_type * p_param, state_type * p_state); \
static uint32_t name ## _on_sys_evt(uint32_t sys_event, state_type * p_state); \
NRF_SVCI_FUNCTION_REGISTER(svci_num, name ## _var, name ## _handler)

Macro for creating a registration for an async handler for the SVCI interface.

Calling this macro will register a SVCI function handler using NRF_SVCI_FUNCTION_REGISTER

Note
This macro must be invoked from a source file as it declares static functions to be implemented and because it creates a Experimental: Section variables registration to SVCI interface which is intended to be unique.
Parameters
[in]svci_numSVC indirect number.
[in]nameName of the async function.
[in]param_typeType of the param to send when running the async interface.
[in]state_typeType of the state to be called together with sys_event.
Return values
Staticdeclarations to handler functions to be implemented in the form NAME_handler NAME_on_call, and NAME_on_sys_event.

Documentation feedback | Developer Zone | Subscribe | Updated