nRF Connect SDK API 0.1.0
|
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.
[in] | ctx | CBOR decoding context. |
[in] | handler | Function which will be called when callback returned by this function is called. The handler must be defined by NRF_RPC_CBKPROXY_HANDLER. |
Decoded | callback. |