nrfxlib API 0.1.0
|
#define NRF_RPC_GROUP_DEFINE_INTERNAL__ | ( | _name, | |
_strid, | |||
_transport, | |||
_ack_handler, | |||
_ack_data, | |||
_err_handler, | |||
_bound_handler, | |||
_wait_on_init, | |||
_initiator | |||
) |
#include <nrf_rpc/include/nrf_rpc.h>
Internal macro for parametrizing nrf_rpc groups.
_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. |
_wait_on_init | The group does not block until it is bound. |
_initiator | The group is the initiator. |