diff options
Diffstat (limited to 'src/include/rba/RBAContentLoserType.hpp')
-rw-r--r-- | src/include/rba/RBAContentLoserType.hpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/rba/RBAContentLoserType.hpp b/src/include/rba/RBAContentLoserType.hpp new file mode 100644 index 0000000..0ddb76e --- /dev/null +++ b/src/include/rba/RBAContentLoserType.hpp @@ -0,0 +1,36 @@ +// Copyright (c) 2018 DENSO CORPORATION. All rights reserved. +/** + * Good loser type class + */ + +#ifndef RBACONTENTLOSERTYPE_HPP +#define RBACONTENTLOSERTYPE_HPP + +namespace rba +{ + +/** + * @enum RBAContentLoserType + * Type of behavior when content loses the arbitration + */ +enum class RBAContentLoserType : std::uint8_t +{ + /** + * @brief Always cancels its request when losing arbitration. + */ + GOOD_LOSER=0, + + /** + * @brief Cancels its request only if it lost the arbitration in the displaying state. + */ + DO_NOT_GIVEUP_UNTIL_WIN, + + /** + * @brief Never cancels its request. + */ + NEVER_GIVEUP +}; + +} + +#endif |