XCORE SDK
XCORE Software Development Kit
rtos_driver_rpc.h
1 // Copyright 2020-2021 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #ifndef RTOS_DRIVER_RPC_H_
5 #define RTOS_DRIVER_RPC_H_
6 
7 #define RTOS_DRIVER_RPC_MAX_CLIENT_TILES 3
8 
9 #include "rtos_intertile.h"
10 
15 
24  union {
25  rtos_intertile_address_t client_address[RTOS_DRIVER_RPC_MAX_CLIENT_TILES];
26  struct {
27  rtos_intertile_address_t host_address;
28  void *host_ctx_ptr;
29  };
30  };
31 
32  size_t remote_client_count; /* This must be > 0 on the host. It must be 0 on the client */
33  int host_task_priority; /* TODO: Consider renaming to rpc_task_priority. Could be used by client as well. */
34 
35  __attribute__((fptrgroup("rtos_driver_rpc_host_start_fptr_grp")))
36  void (*rpc_host_start)(rtos_driver_rpc_t *rpc_config); /* TODO: Consider renaming to rpc_task_start(). Could be used by client as well. */
37 };
38 
39 #endif /* RTOS_DRIVER_RPC_H_ */
Definition: rtos_driver_rpc.h:23
Definition: rtos_intertile.h:50