Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_RPC_SERVER_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_RPC_SERVER_H_
12
13#include <zephyr/net_buf.h>
14
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
28#define RPC_SERVER_MAX_ACK_PERIOD 8
29
35void rpc_server_queue_command(struct net_buf *buf);
36
42void rpc_server_queue_data(struct net_buf *buf);
43
56int infuse_rpc_server_user_command_runner(uint16_t command_id, enum epacket_auth auth,
57 struct net_buf *request, struct net_buf **response);
58
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* INFUSE_SDK_INCLUDE_INFUSE_RPC_SERVER_H_ */
epacket_auth
Definition packet.h:37
void rpc_server_queue_command(struct net_buf *buf)
Push command ePacket to RPC server.
int infuse_rpc_server_user_command_runner(uint16_t command_id, enum epacket_auth auth, struct net_buf *request, struct net_buf **response)
Command handling for user-defined RPCs.
void rpc_server_queue_data(struct net_buf *buf)
Push data ePacket to RPC server.
ePacket packet APIs