nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ NRF_RPC_CBOR_EVT_DECODER

#define NRF_RPC_CBOR_EVT_DECODER ( _group,
_name,
_evt,
_handler,
_data )

#include <nrf_rpc/include/nrf_rpc_cbor.h>

Value:
static const \
struct _nrf_rpc_cbor_decoder NRF_RPC_CONCAT(_name, _cbor_data) = { \
.handler = _handler, \
.handler_data = _data, \
.decoding_done_required = true, \
}; \
NRF_RPC_EVT_DECODER(_group, _name, _evt, _nrf_rpc_cbor_proxy_handler, \
(void *)&NRF_RPC_CONCAT(_name, _cbor_data))
#define NRF_RPC_CONCAT(_x, _y)
Macro for concatenating two tokens in macro expansion.
Definition nrf_rpc_common.h:40

Register an event decoder.

Parameters
_groupGroup that the decoder will belong to, created with a NRF_RPC_GROUP_DEFINE().
_nameName of the decoder.
_evtEvent id. Can be from 0 to 254.
_handlerHandler function of type nrf_rpc_cbor_handler_t.
_dataOpaque pointer for the _handler.