23 const uint8_t *packet,
size_t len,
51 int (*
send)(
const struct nrf_rpc_tr *transport,
const uint8_t *data,
size_t length);
67 void *(*tx_buf_alloc)(
const struct nrf_rpc_tr *transport,
size_t *size);
void(* nrf_rpc_tr_receive_handler_t)(const struct nrf_rpc_tr *transport, const uint8_t *packet, size_t len, void *context)
Packet receive handler callback.
Definition nrf_rpc_tr.h:22
int(* init)(const struct nrf_rpc_tr *transport, nrf_rpc_tr_receive_handler_t receive_cb, void *context)
Function for initialization the nRF RPC transport interface.
Definition nrf_rpc_tr.h:39
int(* send)(const struct nrf_rpc_tr *transport, const uint8_t *data, size_t length)
Function for sending data over transport interface.
Definition nrf_rpc_tr.h:51
void(* tx_buf_free)(const struct nrf_rpc_tr *transport, void *buf)
Function for free allocated Tx buffer.
Definition nrf_rpc_tr.h:77
void(* rx_buf_free)(const struct nrf_rpc_tr *transport, void *buf)
Function for free allocated Rx buffer.
Definition nrf_rpc_tr.h:87
Unified nRF RPC transport API structure.
Definition nrf_rpc_tr.h:28
const struct nrf_rpc_tr_api * api
Definition nrf_rpc_tr.h:94
void * ctx
Definition nrf_rpc_tr.h:97
nRF RPC transport structure.
Definition nrf_rpc_tr.h:92