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

◆ NRF_RPC_GROUP_DEFINE_NOWAIT

#define NRF_RPC_GROUP_DEFINE_NOWAIT (   _name,
  _strid,
  _transport,
  _ack_handler,
  _ack_data,
  _err_handler,
  _bound_handler,
  _initiator 
)

#include <nrf_rpc/include/nrf_rpc.h>

Value:
NRF_RPC_GROUP_DEFINE_INTERNAL__(_name, _strid, _transport, _ack_handler, \
_ack_data, _err_handler, _bound_handler, \
false, _initiator) \
#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 a non-blocking group of commands and events.

The NOWAIT group does not block the nrf_rpc_init until binding completion. When the NOWAIT group is bound, the nrf_rpc_group_bound_handler_t will be called. The NOWAIT group can have two roles: initiator and follower. The initiator initiates the endpoint binding. The follower waits for the initiator to bind the group. Both peers can be initiators, but there must always be at least one on either side of the IPC channel.

Parameters
_nameSymbol name of the group.
_stridString containing a unique identifier of the group. Naming conventions are the same as with 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 the 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 an error occurred in context of this group. Can be NULL if the group does not want to receive error notifications.
_bound_handlerHandler of type nrf_rpc_group_bound_handler_t, called when the group was successfuly bound. The callback is called each time the remote peer binds to the group. This can be used to detect a remote peer reset and can be used by the application to reset the local state.
_initiatorThe group is the initiator.