nRF Connect SDK API 0.1.0
|
void * nrf_rpc_cbkproxy_out_get | ( | int | index, |
void * | handler | ||
) |
#include <include/nrf_rpc/nrf_rpc_cbkproxy.h>
Get output callback proxy.
This function creates an output callback proxy. Calling proxy will call handler with untouched parameters on stack and registers. Because of that type of handler must be the same as callback proxy. This function is type independent, so function pointer are void* and caller is responsible for correct type casting. Handler is called with one additional information (obtained by cbkproxy_out_start_handler) which is a slot number. It can be used to recognize with callback proxy was called in single handler.
index | Slot index. |
handler | Pointer to handler function. The function has to be created by the NRF_RPC_CBKPROXY_HANDLER macro. |