nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_rpc_decode_callbackd()

void * nrf_rpc_decode_callbackd ( struct nrf_rpc_cbor_ctx *  ctx,
void *  handler 
)

#include <include/nrf_rpc/nrf_rpc_serialize.h>

Decode a callback.

This function will use callback proxy module to associate decoded integer (slot number) with provided handler and returned function pointer.

Parameters
[in]ctxCBOR decoding context.
[in]handlerFunction which will be called when callback returned by this function is called. The handler must be defined by NRF_RPC_CBKPROXY_HANDLER.
Return values
Decodedcallback.