nrfxlib API 0.1.0
|
#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>
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.
_name | Symbol name of the group. |
_strid | String 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. |
_transport | Group transport. It is used by group to communicate with a remote processor. |
_ack_handler | Handler 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_data | Opaque pointer for the _ack_handler . |
_err_handler | Handler 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_handler | Handler 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. |
_initiator | The group is the initiator. |