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
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
57void rpc_command_runner_early_response(const struct device *interface,
58 union epacket_interface_address address,
59 enum epacket_auth auth, uint32_t request_id,
60 uint16_t command_id, struct net_buf *response);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_ */
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.
void rpc_command_runner_early_response(const struct device *interface, union epacket_interface_address address, enum epacket_auth auth, uint32_t request_id, uint16_t command_id, struct net_buf *response)
Send the response buffer before returning from the RPC implementation.
epacket_auth
Definition packet.h:37
ePacket packet APIs
Definition packet.h:47