aboutsummaryrefslogtreecommitdiff
path: root/src/protocol_18/functions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol_18/functions.cc')
-rw-r--r--src/protocol_18/functions.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/protocol_18/functions.cc b/src/protocol_18/functions.cc
new file mode 100644
index 0000000..9799fc0
--- /dev/null
+++ b/src/protocol_18/functions.cc
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: BSD-3-Clause
+
+#include "functions.h"
+
+namespace p18 {
+
+bool is_valid_parallel_id(unsigned id)
+{
+ return id >= 0 && id <= 6;
+}
+
+} \ No newline at end of file