Asynchronous Supervisor handler functions

nRF5 SDK v15.0.0

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_num SVC indirect number.
[in] name Name of the async function.
[in] param_type Type of the param to send when running the async interface.
[in] state_type Type of the state to be called together with sys_event.
Return values
Static declarations to handler functions to be implemented in the form NAME_handler NAME_on_call, and NAME_on_sys_event.