nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ NRF_RPC_GROUP_DEFINE

#define NRF_RPC_GROUP_DEFINE (   _name,
  _strid,
  _transport,
  _ack_handler,
  _ack_data,
  _err_handler 
)

#include <nrf_rpc/include/nrf_rpc.h>

Value:
NRF_RPC_GROUP_DEFINE_INTERNAL__(_name, _strid, _transport, _ack_handler, \
_ack_data, _err_handler, NULL, true, \
true) \
#define NRF_RPC_GROUP_DEFINE_INTERNAL__(_name, _strid, _transport, _ack_handler, _ack_data, _err_handler, _bound_handler, _wait_on_init, _initiator)
Internal macro for parametrizing nrf_rpc groups.
Definition: nrf_rpc.h:197
#define NULL
Definition: osal_types.h:36

Define a group of commands and events.

Parameters
_nameSymbol name of the group.
_stridString containing unique identifier of the group. Naming conventions the same as C symbol name. Groups on local and remote must have the same unique identifier.
_transportGroup transport. It is used by group to communicate with a remote processor.
_ack_handlerHandler of type nrf_rpc_ack_handler_t called when ACK was received after event completion. Can be NULL if group does not want to receive ACK notifications.
_ack_dataOpaque pointer for the _ack_handler.
_err_handlerHandler of type nrf_rpc_err_handler_t called when error occurred in context of this group. Can be NULL if group does not want to receive error notifications.