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
10#ifndef INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_
11#define INFUSE_SDK_SUBSYS_RPC_COMMAND_RUNNER_H_
12
13#include <zephyr/device.h>
14#include <zephyr/kernel.h>
15#include <zephyr/net_buf.h>
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27
33void rpc_command_runner(struct net_buf *request);
34
45void rpc_command_runner_request_unref(struct net_buf *request);
46
61void rpc_command_runner_early_response(struct epacket_rx_metadata *rx_meta, uint32_t request_id,
62 uint16_t command_id, struct net_buf *response);
63
67
68#ifdef __cplusplus
69}
70#endif
71
72#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
Metadata for packets that have been received.
Definition packet.h:106