From ca118555214a176728b9aab87849391344306d6d Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:13 +0100 Subject: Initial commit. --- include/common.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/common.h (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h new file mode 100644 index 0000000..7386a34 --- /dev/null +++ b/include/common.h @@ -0,0 +1,19 @@ +/** +* @file common.h +* @author Paul Oliver +* +* This module controls the 'common pipe', which is the FIFO file through which +* communication between different simulations can occur. By calling SEND, +* processes may output local instructions through the pipe. These instructions +* may then be read by processes running on a different simulation instance. +*/ + +#ifndef SALIS_COMMON_H +#define SALIS_COMMON_H + +void _sal_comm_init(string pipe); +void _sal_comm_quit(void); +void _sal_comm_send(uint8 inst); +uint8 _sal_comm_receive(void); + +#endif -- cgit v1.2.1