aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/rba/RBAArbitrationPolicy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/rba/RBAArbitrationPolicy.hpp')
-rw-r--r--src/include/rba/RBAArbitrationPolicy.hpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/include/rba/RBAArbitrationPolicy.hpp b/src/include/rba/RBAArbitrationPolicy.hpp
new file mode 100644
index 0000000..42d49f6
--- /dev/null
+++ b/src/include/rba/RBAArbitrationPolicy.hpp
@@ -0,0 +1,48 @@
+// Copyright (c) 2018 DENSO CORPORATION. All rights reserved.
+/**
+ * Arbitration policy class
+ */
+
+#ifndef RBAARBITRATIONPOLICY_HPP
+#define RBAARBITRATIONPOLICY_HPP
+
+namespace rba
+{
+
+/**
+ * @enum RBAArbitrationPolicy
+ * Type of arbitration policy.
+ */
+enum class RBAArbitrationPolicy : std::uint8_t
+{
+ /**
+ * @brief Same PRIORITY_LAST_COME_FIRST.
+ */
+ DEFAULT,
+ /**
+ * @brief First Come First Arbitration.
+ * @details give priority to first come request.
+ */
+ FIRST_COME_FIRST,
+ /**
+ * @brief Last Come First Arbitration.
+ * @details give priority to last come request.
+ */
+ LAST_COME_FIRST,
+ /**
+ * @brief Priority and First Come First Arbitration.
+ * @details Follow the Priority of Contents.
+ * If same priority then give priority to first come request.
+ */
+ PRIORITY_FIRST_COME_FIRST,
+ /**
+ * @brief Priority and Last Come First Arbitration.
+ * @details Follow the Priority of Contents.
+ * If same priority then give priority to last come request.
+ */
+ PRIORITY_LAST_COME_FIRST
+};
+
+}
+
+#endif