Macros to create Asynchronous Supervisor interface handler functions.
More...
Macros to create Asynchronous Supervisor interface handler functions.
#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);
\
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. |