|
#define | NRF_RPC_PROTOCOL_VERSION 0 |
| nRF RPC protocol version.
|
|
#define | NRF_RPC_ID_UNKNOWN 0xFF |
| Special value to indicate that ID is unknown or irrelevant.
|
|
#define | NRF_RPC_FLAGS_WAIT_ON_INIT 0x01 |
| Flag indicating that the group does not block on initialization.
|
|
#define | NRF_RPC_FLAGS_INITIATOR 0x02 |
| Flag indicating that the peer must initiate group binding.
|
|
#define | NRF_RPC_FLAG_COND(_cond, _flag) |
| Helper macro for conditional flag initialization.
|
|
#define | NRF_RPC_GROUP_DEFINE_INTERNAL__(_name, _strid, _transport, _ack_handler, _ack_data, _err_handler, _bound_handler, _wait_on_init, _initiator) |
| Internal macro for parametrizing nrf_rpc groups.
|
|
#define | NRF_RPC_GROUP_DEFINE(_name, _strid, _transport, _ack_handler, _ack_data, _err_handler) |
| Define a group of commands and events.
|
|
#define | NRF_RPC_GROUP_DEFINE_NOWAIT(_name, _strid, _transport, _ack_handler, _ack_data, _err_handler, _bound_handler, _initiator) |
| Define a non-blocking group of commands and events.
|
|
#define | NRF_RPC_GROUP_DECLARE(_name) |
| Extern declaration of a group.
|
|
#define | NRF_RPC_CMD_DECODER(_group, _name, _cmd, _handler, _data) |
| Register a command decoder.
|
|
#define | NRF_RPC_EVT_DECODER(_group, _name, _evt, _handler, _data) |
| Register an event decoder.
|
|
#define | NRF_RPC_GROUP_STATUS(_group) |
| Check group status.
|
|
|
int | nrf_rpc_init (nrf_rpc_err_handler_t err_handler) |
| Initialize the nRF RPC.
|
|
static int | nrf_rpc_cmd (const struct nrf_rpc_group *group, uint8_t cmd, uint8_t *packet, size_t len, nrf_rpc_handler_t handler, void *handler_data) |
| Send a command and provide callback to handle response.
|
|
static int | nrf_rpc_cmd_rsp (const struct nrf_rpc_group *group, uint8_t cmd, uint8_t *packet, size_t len, const uint8_t **rsp_packet, size_t *rsp_len) |
| Send a command and get response as an output parameter.
|
|
static void | nrf_rpc_cmd_no_err (const struct nrf_rpc_group *group, uint8_t cmd, uint8_t *packet, size_t len, nrf_rpc_handler_t handler, void *handler_data) |
| Send a command, provide callback to handle response and pass any error to an error handler.
|
|
static void | nrf_rpc_cmd_rsp_no_err (const struct nrf_rpc_group *group, uint8_t cmd, uint8_t *packet, size_t len, const uint8_t **rsp_packet, size_t *rsp_len) |
| Send a command, get response as an output parameter and pass any error to an error handler.
|
|
int | nrf_rpc_evt (const struct nrf_rpc_group *group, uint8_t evt, uint8_t *packet, size_t len) |
| Send an event.
|
|
void | nrf_rpc_evt_no_err (const struct nrf_rpc_group *group, uint8_t evt, uint8_t *packet, size_t len) |
| Send an event and pass any error to an error handler.
|
|
int | nrf_rpc_rsp (const struct nrf_rpc_group *group, uint8_t *packet, size_t len) |
| Send a response.
|
|
void | nrf_rpc_rsp_no_err (const struct nrf_rpc_group *group, uint8_t *packet, size_t len) |
| Send a response and pass any error to an error handler.
|
|
void | nrf_rpc_decoding_done (const struct nrf_rpc_group *group, const uint8_t *packet) |
| Indicate that decoding of the input packet is done.
|
|
void | nrf_rpc_err (int code, enum nrf_rpc_err_src src, const struct nrf_rpc_group *group, uint8_t id, uint8_t packet_type) |
| Report an error to nRF RPC error handler.
|
|
void | nrf_rpc_alloc_tx_buf (const struct nrf_rpc_group *group, uint8_t **buf, size_t len) |
| Allocates buffer for a packet.
|
|
void | nrf_rpc_free_tx_buf (const struct nrf_rpc_group *group, uint8_t *buf) |
| Deallocates Tx buffer.
|
|
Module to call procedures on a remote processor.