Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
command_runner.h
Go to the documentation of this file.
1
8
9#ifndef INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_
10#define INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_
11
12#include <zephyr/device.h>
13#include <zephyr/kernel.h>
14#include <zephyr/net_buf.h>
15
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
27void rpc_command_runner(struct net_buf *request);
28
39void rpc_command_runner_request_unref(struct net_buf *request);
40
55void rpc_command_runner_early_response(struct epacket_rx_metadata *rx_meta, uint32_t request_id,
56 uint16_t command_id, struct net_buf *response);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_ */
void rpc_command_runner_early_response(struct epacket_rx_metadata *rx_meta, uint32_t request_id, uint16_t command_id, struct net_buf *response)
Send the response buffer before returning from the RPC implementation.
void rpc_command_runner(struct net_buf *request)
Execute a command contained in the buffer.
void rpc_command_runner_request_unref(struct net_buf *request)
Free the request buffer inside the RPC implementation.
ePacket packet APIs
Definition packet.h:91